aboutsummaryrefslogtreecommitdiff
path: root/rockspecs
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2023-11-09 19:56:49 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2023-11-09 22:59:06 +0100
commit6f8f8fda06c6fa499484feeb6068b560b13d7859 (patch)
tree0a4a6144982ae147cb98df43890550def54bbec6 /rockspecs
parent0c8efdd97c08c06aeb5e5e419d933a6a28bdfe26 (diff)
downloadluasystem-6f8f8fda06c6fa499484feeb6068b560b13d7859.tar.gz
luasystem-6f8f8fda06c6fa499484feeb6068b560b13d7859.tar.bz2
luasystem-6f8f8fda06c6fa499484feeb6068b560b13d7859.zip
chore(rockspecs): update new location
Diffstat (limited to 'rockspecs')
-rw-r--r--rockspecs/luasystem-0.2.1-1.rockspec68
1 files changed, 68 insertions, 0 deletions
diff --git a/rockspecs/luasystem-0.2.1-1.rockspec b/rockspecs/luasystem-0.2.1-1.rockspec
new file mode 100644
index 0000000..7d8b9b0
--- /dev/null
+++ b/rockspecs/luasystem-0.2.1-1.rockspec
@@ -0,0 +1,68 @@
1local package_name = "luasystem"
2local package_version = "0.2.1"
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 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 = { },
43 mingw32 = { },
44 }
45 return {
46 modules = {
47 ['system.core'] = {
48 sources = { 'src/core.c', 'src/compat.c', 'src/time.c', },
49 defines = defines[plat],
50 libraries = libraries[plat],
51 },
52 },
53 }
54end
55
56build = {
57 type = 'builtin',
58 platforms = {
59 linux = make_platform('linux'),
60 unix = make_platform('unix'),
61 macosx = make_platform('macosx'),
62 win32 = make_platform('win32'),
63 mingw32 = make_platform('mingw32'),
64 },
65 modules = {
66 ['system.init'] = 'system/init.lua',
67 },
68}