summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-11-22 17:01:00 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-11-22 17:01:00 -0600
commit6b28bb63b7a37260c504ad0235c3d619e14494d4 (patch)
tree2633a6ed19a6b9d395a4adc1765ca83278cfe433
parent225a33bf8b1826d213bd5bf04595d59d339aa491 (diff)
downloadlua-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-xinit12
-rw-r--r--meta.lua11
2 files changed, 14 insertions, 9 deletions
diff --git a/init b/init
index f5e9155..5ffad4d 100755
--- a/init
+++ b/init
@@ -1,13 +1,13 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2 2
3cd lua-compat-5.3 3cd lua-compat-5.3
4cp rockspecs/compat53-scm-1.rockspec . 4cp rockspecs/compat53-$packver.rockspec .
5cp rockspecs/bit32-scm-1.rockspec . 5cp rockspecs/bit32-$packver.rockspec .
6luarocks config variables.CFLAGS " $CFLAGS" 6luarocks config variables.CFLAGS " $CFLAGS"
7luarocks make --pack-binary-rock compat53-scm-1.rockspec 7luarocks make --pack-binary-rock compat53-$packver.rockspec
8luarocks make --pack-binary-rock bit32-scm-1.rockspec 8luarocks make --pack-binary-rock bit32-$packver.rockspec
9obj1="compat53-scm-1.$(luarocks config arch).rock" 9obj1="compat53-$packver.$(luarocks config arch).rock"
10obj2="bit32-scm-1.$(luarocks config arch).rock" 10obj2="bit32-$packver.$(luarocks config arch).rock"
11cp $obj1 /root 11cp $obj1 /root
12cp $obj2 /root 12cp $obj2 /root
13cd /root 13cd /root
diff --git a/meta.lua b/meta.lua
index 06a5eef..d1841c4 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,3 +1,7 @@
1local package_versions = {
2 ["scm-1"] = true,
3 ["0.12.1-1"] = true
4}
1local lua_versions = { 5local lua_versions = {
2 ["51"] = true, 6 ["51"] = true,
3 ["52"] = true, 7 ["52"] = true,
@@ -20,7 +24,7 @@ local debug = {
20local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} 24local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
21 25
22local builds = {} 26local builds = {}
23for version, _, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do 27for 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 },