liblua54: fix build with ndk-r23
This commit is contained in:
parent
7a09e57aea
commit
a5e6cc90f5
@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Shared library for the Lua interpreter"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=5.4.3
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://www.lua.org/ftp/lua-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=f8612276169e3bfcbcfb8f226195bfc6e466fe13042f1076cbde92b7ec96bbfb
|
||||
TERMUX_PKG_EXTRA_MAKE_ARGS=linux
|
||||
@ -18,6 +19,7 @@ termux_step_configure() {
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
OLDAR="$AR"
|
||||
AR+=" rcu"
|
||||
CFLAGS+=" -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_UNPACK"
|
||||
export MYLDFLAGS=$LDFLAGS
|
||||
@ -33,7 +35,11 @@ termux_step_make_install() {
|
||||
INSTALL_MAN="$TERMUX_PREFIX/share/man/man1" \
|
||||
install
|
||||
install -Dm600 lua.pc "$TERMUX_PREFIX"/lib/pkgconfig/lua54.pc
|
||||
|
||||
mv -f "$TERMUX_PREFIX"/share/man/man1/lua.1 "$TERMUX_PREFIX"/share/man/man1/lua5.4.1
|
||||
mv -f "$TERMUX_PREFIX"/share/man/man1/luac.1 "$TERMUX_PREFIX"/share/man/man1/luac5.4.1
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
cd "$TERMUX_PREFIX"/share/man/man1
|
||||
mv -f lua.1 lua5.4.1
|
||||
mv -f luac.1 luac5.4.1
|
||||
export AR="$OLDAR"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user