Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flathub/shared-modules.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnrud <unrud@outlook.com>2020-06-27 02:26:47 +0300
committerPatrick <tingping@tingping.se>2020-06-27 07:21:03 +0300
commit2ea43be923edb2cef57aa4820b3cae391c440c8f (patch)
treec3341c2be62431f19e03cd717143e98d0474ab56
parentccbee96da681da76990d8149d9a0cf145a522342 (diff)
lua5.3: Set LUA_COMPAT_5_{1,2} in header file
Fixes #116
-rw-r--r--lua5.3/lua-5.3.5.json5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua5.3/lua-5.3.5.json b/lua5.3/lua-5.3.5.json
index 3d838ec..c789fd6 100644
--- a/lua5.3/lua-5.3.5.json
+++ b/lua5.3/lua-5.3.5.json
@@ -2,7 +2,7 @@
"name": "lua-5.3",
"buildsystem": "simple",
"build-commands": [
- "make -j $FLATPAK_BUILDER_N_JOBS CFLAGS=\"$CFLAGS -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -DLUA_USE_LINUX\" linux",
+ "make -j $FLATPAK_BUILDER_N_JOBS CFLAGS=\"$CFLAGS -fPIC -DLUA_USE_LINUX\" linux",
"make TO_LIB=liblua.so.5.3.5 INSTALL_TOP=$FLATPAK_DEST install",
"ln -sf liblua.so.5.3.5 $FLATPAK_DEST/lib/liblua.so",
"ln -sf liblua.so.5.3.5 $FLATPAK_DEST/lib/liblua.so.5.3",
@@ -32,7 +32,8 @@
"commands": [
"sed -i \"s|/usr/local/|$FLATPAK_DEST/|;s|LUA_IDSIZE 60|LUA_IDSIZE 512|\" src/luaconf.h",
"# Lua 5.3.5 has wrong release version in its Makefile. Fix it.",
- "sed 's/^R= \$V.4/R= \$V.5/' -i Makefile"
+ "sed 's/^R= \$V.4/R= \$V.5/' -i Makefile",
+ "sed -i '12 a\\\\n#define LUA_COMPAT_5_1\\n#define LUA_COMPAT_5_2' src/luaconf.h"
]
}
],