2017-01-18 00:58:39 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.lua.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Shared library for the Lua interpreter"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2018-07-11 11:19:18 +02:00
|
|
|
TERMUX_PKG_VERSION=5.3.5
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_REVISION=4
|
2018-07-11 11:19:18 +02:00
|
|
|
TERMUX_PKG_SHA256=0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac
|
2017-01-18 00:58:39 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://www.lua.org/ftp/lua-${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS=linux
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="liblua-dev"
|
|
|
|
TERMUX_PKG_REPLACES="liblua-dev"
|
2017-09-11 22:26:10 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="readline"
|
2017-01-18 00:58:39 +01:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2017-01-18 00:58:39 +01:00
|
|
|
AR+=" rcu"
|
2018-02-05 01:58:30 +01:00
|
|
|
CFLAGS+=" -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_UNPACK"
|
2019-03-20 01:25:41 +01:00
|
|
|
export MYLDFLAGS=$LDFLAGS
|
2017-01-18 00:58:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
# Add a pkg-config file for the system zlib
|
|
|
|
cat > "$PKG_CONFIG_LIBDIR/lua.pc" <<-HERE
|
|
|
|
Name: Lua
|
|
|
|
Description: An Extensible Extension Language
|
|
|
|
Version: $TERMUX_PKG_VERSION
|
|
|
|
Requires:
|
|
|
|
Libs: -llua -lm
|
|
|
|
HERE
|
|
|
|
}
|