termux-packages/packages/liblua/build.sh
Fredrik Fornwall 154bc46225 lua: Add and replace luajit
luajit is rather complex and lacking upstream maintenance.
2017-01-18 01:02:18 +01:00

26 lines
665 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.lua.org/
TERMUX_PKG_DESCRIPTION="Shared library for the Lua interpreter"
TERMUX_PKG_VERSION=5.3.3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://www.lua.org/ftp/lua-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_EXTRA_MAKE_ARGS=linux
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_CONFLICTS=libluajit
TERMUX_PKG_REPLACES=libluajit
termux_step_pre_configure () {
AR+=" rcu"
CFLAGS+=" -fPIC"
}
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
}