1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
"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.4.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",
"/share/man"
]
}
|