aboutsummaryrefslogtreecommitdiff
path: root/rockspecs
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2023-12-16 00:18:54 +0100
committerGitHub <noreply@github.com>2023-12-16 00:18:54 +0100
commitc06963917ccc951a1058d7b7f412c52d3c4f443a (patch)
treee2341800e3c6cf77dfc50f90b6509c030bd71308 /rockspecs
parent682decf94e238bb2e5407c23651f606ca8d7e107 (diff)
downloadluasystem-0.3.0.tar.gz
luasystem-0.3.0.tar.bz2
luasystem-0.3.0.zip
Release v0.3.0 (#11)v0.3.0
Diffstat (limited to 'rockspecs')
-rw-r--r--rockspecs/luasystem-0.3.0-1.rockspec75
1 files changed, 75 insertions, 0 deletions
diff --git a/rockspecs/luasystem-0.3.0-1.rockspec b/rockspecs/luasystem-0.3.0-1.rockspec
new file mode 100644
index 0000000..982aa89
--- /dev/null
+++ b/rockspecs/luasystem-0.3.0-1.rockspec
@@ -0,0 +1,75 @@
1local package_name = "luasystem"
2local package_version = "0.3.0"
3local rockspec_revision = "1"
4local github_account_name = "lunarmodules"
5local github_repo_name = "luasystem"
6
7
8package = package_name
9version = package_version.."-"..rockspec_revision
10
11source = {
12 url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git",
13 branch = (package_version == "scm") and "master" or nil,
14 tag = (package_version ~= "scm") and "v"..package_version or nil,
15}
16
17description = {
18 summary = 'Platform independent system calls for Lua.',
19 detailed = [[
20 Adds a Lua API for making platform independent system calls.
21 ]],
22 license = 'MIT <http://opensource.org/licenses/MIT>',
23 homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
24}
25
26dependencies = {
27 'lua >= 5.1',
28}
29
30local function make_platform(plat)
31 local defines = {
32 linux = { },
33 unix = { },
34 macosx = { },
35 win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" },
36 mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" },
37 }
38 local libraries = {
39 linux = { "rt" },
40 unix = { },
41 macosx = { },
42 win32 = { "advapi32", "winmm" },
43 mingw32 = { },
44 }
45 return {
46 modules = {
47 ['system.core'] = {
48 sources = {
49 'src/core.c',
50 'src/compat.c',
51 'src/time.c',
52 'src/environment.c',
53 'src/random.c',
54 'src/term.c',
55 },
56 defines = defines[plat],
57 libraries = libraries[plat],
58 },
59 },
60 }
61end
62
63build = {
64 type = 'builtin',
65 platforms = {
66 linux = make_platform('linux'),
67 unix = make_platform('unix'),
68 macosx = make_platform('macosx'),
69 win32 = make_platform('win32'),
70 mingw32 = make_platform('mingw32'),
71 },
72 modules = {
73 ['system.init'] = 'system/init.lua',
74 },
75}