diff options
author | davidovski <david@davidovski.xyz> | 2023-02-02 14:10:02 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-02-02 14:10:02 +0000 |
commit | f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch) | |
tree | 76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/lua5-1/lua5-1.xibuild | |
parent | 05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff) |
Work
Diffstat (limited to 'repo/lua5-1/lua5-1.xibuild')
-rw-r--r-- | repo/lua5-1/lua5-1.xibuild | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/repo/lua5-1/lua5-1.xibuild b/repo/lua5-1/lua5-1.xibuild index ddfd991..8f12ea3 100644 --- a/repo/lua5-1/lua5-1.xibuild +++ b/repo/lua5-1/lua5-1.xibuild @@ -1,9 +1,8 @@ #!/bin/sh -MAKEDEPS="make " -DEPS="readline" +MAKEDEPS="make readline" -PKG_VER=5.4.4 +PKG_VER=5.1.5 SOURCE=https://www.lua.org/ftp/lua-$PKG_VER.tar.gz # use alpinelinux's makefile @@ -33,19 +32,18 @@ prepare () { AC_OUTPUT() EOF libtoolize --force --install && aclocal && autoconf - - } build () { ./configure \ --prefix=/usr + cd src make CFLAGS="$CFLAGS -DLUA_USE_LINUX" \ SYSLDFLAGS="$LDFLAGS" \ LIB_LIBS="-lpthread -lm -ldl" \ RPATH="/usr/lib" \ - V=${PKG_VER%.*} + V=${PKG_VER%.*} alpine_all } package () { @@ -55,6 +53,10 @@ package () { INSTALL_TOP="$PKG_DEST/usr" \ INSTALL_INC="$PKG_DEST/usr/include" \ INSTALL_LIB="$PKG_DEST/usr/lib" \ + alpine_install + local i; for i in "$PKG_DEST"/usr/bin/*; do + mv "$i" "$i"5.1 + done install -D -m 644 etc/lua.pc "$PKG_DEST"/usr/lib/pkgconfig/lua5.1.pc install -D -m 644 doc/lua.1 "$PKG_DEST"/usr/share/man/man1/lua5.1.1 |