diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-08-23 14:40:32 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-08-23 14:40:32 -0500 |
commit | 2b5e5d9b0b35ec88b7dca9b183361dc18bc7d3a6 (patch) | |
tree | 582cd6d05797073d8a787a6087fad7534f7225f3 | |
parent | 69906e56fcf2744d6cb0fd12ab018cb7c9d55527 (diff) | |
download | luafilesystem-packaging-2b5e5d9b0b35ec88b7dca9b183361dc18bc7d3a6.tar.gz luafilesystem-packaging-2b5e5d9b0b35ec88b7dca9b183361dc18bc7d3a6.tar.bz2 luafilesystem-packaging-2b5e5d9b0b35ec88b7dca9b183361dc18bc7d3a6.zip |
Try using luarocks deploy script
-rwxr-xr-x | init | 2 | ||||
-rw-r--r-- | meta.lua | 21 |
2 files changed, 10 insertions, 13 deletions
@@ -9,7 +9,7 @@ cd /root | |||
9 | if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then | 9 | if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then |
10 | # Release build, delete docs/ and tests/ | 10 | # Release build, delete docs/ and tests/ |
11 | zip -d $obj docs/ docs/* tests/ tests/* | 11 | zip -d $obj docs/ docs/* tests/ tests/* |
12 | # And pack the library | 12 | # And pack the library with upx |
13 | unzip $obj lib/* | 13 | unzip $obj lib/* |
14 | upx lib/* | 14 | upx lib/* |
15 | zip -r -u $obj lib | 15 | zip -r -u $obj lib |
@@ -1,30 +1,27 @@ | |||
1 | local lua_versions = { | 1 | local lua_versions = { |
2 | ["51"] = "https://www.lua.org/ftp/lua-5.1.5.tar.gz", | 2 | ["51"] = true, |
3 | --[[ | 3 | ["52"] = true, |
4 | ["52"] = "https://www.lua.org/ftp/lua-5.2.4.tar.gz", | 4 | ["53"] = true, |
5 | ["53"] = "https://www.lua.org/ftp/lua-5.3.6.tar.gz", | 5 | ["54"] = true, |
6 | ["54"] = "https://www.lua.org/ftp/lua-5.4.7.tar.gz", | ||
7 | ]] | ||
8 | } | 6 | } |
9 | local optimizations = { | 7 | local optimizations = { |
10 | --[[ | 8 | tiny = "-Oz", |
9 | --[[ | ||
11 | size = "-Os", | 10 | size = "-Os", |
12 | zero = "-O0", | 11 | zero = "-O0", |
13 | one = "-O1", | 12 | one = "-O1", |
14 | two = "-O2", | 13 | two = "-O2", |
15 | ]] | 14 | ]] |
16 | three = "-O3", | 15 | three = "-O3", |
17 | } | 16 | } |
18 | local debug = { | 17 | local debug = { |
19 | --[[ | ||
20 | release = "", | 18 | release = "", |
21 | ]] | ||
22 | debug = "-g", | 19 | debug = "-g", |
23 | } | 20 | } |
24 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | 21 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} |
25 | 22 | ||
26 | local builds = {} | 23 | local builds = {} |
27 | for version, link, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do | 24 | for version, _, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do |
28 | builds["luafilesystem-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image] = { | 25 | builds["luafilesystem-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image] = { |
29 | image = "image-luarocks-" .. version.. "-" .. image, | 26 | image = "image-luarocks-" .. version.. "-" .. image, |
30 | requires = { | 27 | requires = { |
@@ -33,7 +30,7 @@ for version, link, name, optimization, rel, flag, _, image in cartesian(lua_vers | |||
33 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, | 30 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, |
34 | }, | 31 | }, |
35 | produces = { | 32 | produces = { |
36 | ["luafilesystem-scm-1.mingw32-x86_64.rock"] = image .. "/" .. rel .. "/" .. name .. "/" .. version | 33 | ["luafilesystem-scm-1.mingw32-x86_64.rock"] = {"luarocks.sh", "luafilesystem", image, version, name, rel}, |
37 | }, | 34 | }, |
38 | env = { | 35 | env = { |
39 | CFLAGS = optimization .. " " .. flag, | 36 | CFLAGS = optimization .. " " .. flag, |