2017-01-18 00:58:39 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.lua.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Shared library for the Lua interpreter"
|
2017-02-02 01:35:35 +01:00
|
|
|
TERMUX_PKG_VERSION=5.3.4
|
2017-09-14 12:43:48 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2017-01-18 00:58:39 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://www.lua.org/ftp/lua-${TERMUX_PKG_VERSION}.tar.gz
|
2017-02-02 01:35:35 +01:00
|
|
|
TERMUX_PKG_SHA256=f681aa518233bc407e23acf0f5887c884f17436f000d453b2491a9f11a52400c
|
2017-01-18 00:58:39 +01:00
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS=linux
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
TERMUX_PKG_CONFLICTS=libluajit
|
|
|
|
TERMUX_PKG_REPLACES=libluajit
|
2017-09-11 22:20:26 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="readline-dev"
|
2017-01-18 00:58:39 +01:00
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
|
|
|
AR+=" rcu"
|
2017-03-01 17:18:15 +01:00
|
|
|
CFLAGS+=" -fPIC -DLUA_COMPAT_5_2"
|
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
|
|
|
|
}
|