summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-07-31 17:43:00 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-07-31 17:43:00 -0500
commit982459ff2287082ef844e80b3c9c0deda3ad673b (patch)
tree02e872e048d005f5a3f9c711685ad60592f20152
parent2a5a624fdb44f572c212ce604964f7197245b338 (diff)
downloadlua-packaging-982459ff2287082ef844e80b3c9c0deda3ad673b.tar.gz
lua-packaging-982459ff2287082ef844e80b3c9c0deda3ad673b.tar.bz2
lua-packaging-982459ff2287082ef844e80b3c9c0deda3ad673b.zip
Try putting environment variables somewhere else
-rwxr-xr-xinit2
-rw-r--r--meta.lua4
2 files changed, 4 insertions, 2 deletions
diff --git a/init b/init
index d9c208f..11fb612 100755
--- a/init
+++ b/init
@@ -4,7 +4,7 @@ luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..")
4mkdir "$luaver" 4mkdir "$luaver"
5tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1 5tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1
6cd "$luaver" 6cd "$luaver"
7make mingw "CFLAGS= -Wall -Wextra -std=c99 -pedantic $1 $2" 7make mingw "CFLAGS= -Wall -Wextra -std=c99 -pedantic $CFLAGS"
8cd "/root/" 8cd "/root/"
9cp "$luaver/src/*.exe" . 9cp "$luaver/src/*.exe" .
10cp "$luaver/src/*.dll" . 10cp "$luaver/src/*.dll" .
diff --git a/meta.lua b/meta.lua
index 5fcc120..6cc9e93 100644
--- a/meta.lua
+++ b/meta.lua
@@ -38,7 +38,9 @@ for version, link, name, optimization, rel, flag, _, image in cartesian(lua_vers
38 "lua" .. version .. ".dll", 38 "lua" .. version .. ".dll",
39 "luac.exe", 39 "luac.exe",
40 }, 40 },
41 entrypoint = "init " .. optimization .. " " .. flag, 41 env = {
42 CFLAGS = optimization .. " " .. flag,
43 },
42 }) 44 })
43end 45end
44return builds 46return builds