summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-08-23 14:40:32 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-08-23 14:40:32 -0500
commit2b5e5d9b0b35ec88b7dca9b183361dc18bc7d3a6 (patch)
tree582cd6d05797073d8a787a6087fad7534f7225f3
parent69906e56fcf2744d6cb0fd12ab018cb7c9d55527 (diff)
downloadluafilesystem-packaging-2b5e5d9b0b35ec88b7dca9b183361dc18bc7d3a6.tar.gz
luafilesystem-packaging-2b5e5d9b0b35ec88b7dca9b183361dc18bc7d3a6.tar.bz2
luafilesystem-packaging-2b5e5d9b0b35ec88b7dca9b183361dc18bc7d3a6.zip
Try using luarocks deploy script
-rwxr-xr-xinit2
-rw-r--r--meta.lua21
2 files changed, 10 insertions, 13 deletions
diff --git a/init b/init
index 8d55897..1eac090 100755
--- a/init
+++ b/init
@@ -9,7 +9,7 @@ cd /root
9if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then 9if [ -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
diff --git a/meta.lua b/meta.lua
index d2f5f56..7fd381f 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,30 +1,27 @@
1local lua_versions = { 1local 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}
9local optimizations = { 7local 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}
18local debug = { 17local debug = {
19 --[[
20 release = "", 18 release = "",
21 ]]
22 debug = "-g", 19 debug = "-g",
23} 20}
24local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} 21local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
25 22
26local builds = {} 23local builds = {}
27for version, link, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do 24for 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,