diff options
Diffstat (limited to 'subprojects/shared-modules/lua5.3/lua-5.3.5.json')
-rw-r--r-- | subprojects/shared-modules/lua5.3/lua-5.3.5.json | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/subprojects/shared-modules/lua5.3/lua-5.3.5.json b/subprojects/shared-modules/lua5.3/lua-5.3.5.json index fd5f2682..c789fd65 100644 --- a/subprojects/shared-modules/lua5.3/lua-5.3.5.json +++ b/subprojects/shared-modules/lua5.3/lua-5.3.5.json @@ -1,7 +1,17 @@ { "name": "lua-5.3", - "config-opts": [ - "--with-compat-module" + "buildsystem": "simple", + "build-commands": [ + "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", + "make INSTALL_TOP=${FLATPAK_DEST} pc > lua.pc", + "cat lua.pc.in >> lua.pc", + "install -Dm644 lua.pc $FLATPAK_DEST/lib/pkgconfig/lua.pc", + "ln -sf lua.pc $FLATPAK_DEST/lib/pkgconfig/lua53.pc", + "ln -sf lua.pc $FLATPAK_DEST/lib/pkgconfig/lua5.3.pc", + "ln -sf lua.pc $FLATPAK_DEST/lib/pkgconfig/lua-5.3.pc" ], "sources": [ { @@ -10,25 +20,27 @@ "sha256": "0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac" }, { - "type": "shell", - "commands": [ "mv src/luaconf.h src/luaconf.h.template.in" ] - }, - { "type": "patch", - "path": "lua-5.3.0-autotoolize.patch" + "path": "makefile-add-liblua.so-rule.patch" }, { - "type": "patch", - "path": "lua-5.3.0-idsize.patch" - }, - { - "type": "patch", - "path": "lua-5.3.0-configure-compat-module.patch" + "type": "file", + "path": "lua.pc.in" }, { "type": "shell", - "commands": [ "autoreconf -i" ] + "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 -i '12 a\\\\n#define LUA_COMPAT_5_1\\n#define LUA_COMPAT_5_2' src/luaconf.h" + ] } ], - "cleanup": [ "/bin", "/include", "/lib/pkgconfig", "/lib/*.a", "/lib/*.la", "/share/man" ] + "cleanup": [ + "/bin", + "/include", + "/lib/pkgconfig", + "/share/man" + ] } |