diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-11-22 17:01:00 -0600 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-11-22 17:01:00 -0600 |
commit | 6b28bb63b7a37260c504ad0235c3d619e14494d4 (patch) | |
tree | 2633a6ed19a6b9d395a4adc1765ca83278cfe433 | |
parent | 225a33bf8b1826d213bd5bf04595d59d339aa491 (diff) | |
download | lua-compat-53-packaging-6b28bb63b7a37260c504ad0235c3d619e14494d4.tar.gz lua-compat-53-packaging-6b28bb63b7a37260c504ad0235c3d619e14494d4.tar.bz2 lua-compat-53-packaging-6b28bb63b7a37260c504ad0235c3d619e14494d4.zip |
Build the specific version tl uses
-rwxr-xr-x | init | 12 | ||||
-rw-r--r-- | meta.lua | 11 |
2 files changed, 14 insertions, 9 deletions
@@ -1,13 +1,13 @@ | |||
1 | #!/bin/sh -ex | 1 | #!/bin/sh -ex |
2 | 2 | ||
3 | cd lua-compat-5.3 | 3 | cd lua-compat-5.3 |
4 | cp rockspecs/compat53-scm-1.rockspec . | 4 | cp rockspecs/compat53-$packver.rockspec . |
5 | cp rockspecs/bit32-scm-1.rockspec . | 5 | cp rockspecs/bit32-$packver.rockspec . |
6 | luarocks config variables.CFLAGS " $CFLAGS" | 6 | luarocks config variables.CFLAGS " $CFLAGS" |
7 | luarocks make --pack-binary-rock compat53-scm-1.rockspec | 7 | luarocks make --pack-binary-rock compat53-$packver.rockspec |
8 | luarocks make --pack-binary-rock bit32-scm-1.rockspec | 8 | luarocks make --pack-binary-rock bit32-$packver.rockspec |
9 | obj1="compat53-scm-1.$(luarocks config arch).rock" | 9 | obj1="compat53-$packver.$(luarocks config arch).rock" |
10 | obj2="bit32-scm-1.$(luarocks config arch).rock" | 10 | obj2="bit32-$packver.$(luarocks config arch).rock" |
11 | cp $obj1 /root | 11 | cp $obj1 /root |
12 | cp $obj2 /root | 12 | cp $obj2 /root |
13 | cd /root | 13 | cd /root |
@@ -1,3 +1,7 @@ | |||
1 | local package_versions = { | ||
2 | ["scm-1"] = true, | ||
3 | ["0.12.1-1"] = true | ||
4 | } | ||
1 | local lua_versions = { | 5 | local lua_versions = { |
2 | ["51"] = true, | 6 | ["51"] = true, |
3 | ["52"] = true, | 7 | ["52"] = true, |
@@ -20,7 +24,7 @@ local debug = { | |||
20 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | 24 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} |
21 | 25 | ||
22 | local builds = {} | 26 | local builds = {} |
23 | for version, _, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do | 27 | for package_version, _, version, _, name, optimization, rel, flag, _, image in cartesian(package_versions, lua_versions, optimizations, debug, compilers) do |
24 | local buildname = "lua-compat-53-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image | 28 | local buildname = "lua-compat-53-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image |
25 | builds[buildname] = { | 29 | builds[buildname] = { |
26 | image = "image-luarocks-" .. version.. "-" .. image, | 30 | image = "image-luarocks-" .. version.. "-" .. image, |
@@ -30,11 +34,12 @@ for version, _, name, optimization, rel, flag, _, image in cartesian(lua_version | |||
30 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, | 34 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, |
31 | }, | 35 | }, |
32 | produces = { | 36 | produces = { |
33 | ["compat53-scm-1.mingw32-x86_64.rock"] = {"luarocks.sh", "compat53", image, version, name, rel}, | 37 | ["compat53-" .. package_version .. ".mingw32-x86_64.rock"] = {"luarocks.sh", "compat53", image, version, name, rel}, |
34 | ["bit32-scm-1.mingw32-x86_64.rock"] = {"luarocks.sh", "bit32", image, version, name, rel}, | 38 | ["bit32-" .. package_version .. ".mingw32-x86_64.rock"] = {"luarocks.sh", "bit32", image, version, name, rel}, |
35 | }, | 39 | }, |
36 | env = { | 40 | env = { |
37 | CFLAGS = optimization .. " " .. flag, | 41 | CFLAGS = optimization .. " " .. flag, |
42 | packver = package_version, | ||
38 | rockver = version:gsub("(%d)(%d)$","%1.%2"), | 43 | rockver = version:gsub("(%d)(%d)$","%1.%2"), |
39 | version = version | 44 | version = version |
40 | }, | 45 | }, |