summaryrefslogtreecommitdiff
path: root/meta.lua
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 /meta.lua
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
Diffstat (limited to 'meta.lua')
-rw-r--r--meta.lua11
1 files changed, 8 insertions, 3 deletions
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 },