44 lines
1.5 KiB
JSON
44 lines
1.5 KiB
JSON
{
|
|
"name": "lua-5.4",
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"make -j $FLATPAK_BUILDER_N_JOBS CFLAGS=\"$CFLAGS -fPIC -DLUA_USE_LINUX\" linux",
|
|
"make TO_LIB=liblua.so.5.4.4 INSTALL_TOP=$FLATPAK_DEST install",
|
|
"ln -sf liblua.so.5.4.4 $FLATPAK_DEST/lib/liblua.so",
|
|
"ln -sf liblua.so.5.4.4 $FLATPAK_DEST/lib/liblua.so.5.4",
|
|
"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/lua54.pc",
|
|
"ln -sf lua.pc $FLATPAK_DEST/lib/pkgconfig/lua5.4.pc",
|
|
"ln -sf lua.pc $FLATPAK_DEST/lib/pkgconfig/lua-5.4.pc"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://www.lua.org/ftp/lua-5.4.4.tar.gz",
|
|
"sha256": "164c7849653b80ae67bec4b7473b884bf5cc8d2dca05653475ec2ed27b9ebf61"
|
|
},
|
|
{
|
|
"type": "patch",
|
|
"path": "makefile-add-liblua.so-rule.patch"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "lua.pc.in"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"commands": [
|
|
"sed -i \"s|/usr/local/|$FLATPAK_DEST/|;s|LUA_IDSIZE 60|LUA_IDSIZE 512|\" src/luaconf.h",
|
|
"sed -i '12 a\\\\n#define LUA_COMPAT_5_1\\n#define LUA_COMPAT_5_2' src/luaconf.h"
|
|
]
|
|
}
|
|
],
|
|
"cleanup": [
|
|
"/bin",
|
|
"/include",
|
|
"/lib/pkgconfig",
|
|
"/man"
|
|
]
|
|
}
|