Since now X11 packages are official, it is necessary to rebuild them all to make sure that everything is okay.
35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.lua.org
|
|
TERMUX_PKG_DESCRIPTION="Shared library for the Lua interpreter (v5.1.x)"
|
|
TERMUX_PKG_VERSION=5.1.5
|
|
TERMUX_PKG_REVISION=8
|
|
TERMUX_PKG_SRCURL=http://www.lua.org/ftp/lua-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
|
|
TERMUX_PKG_BUILD_DEPENDS="readline"
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
termux_step_make() {
|
|
make -j ${TERMUX_MAKE_PROCESSES} \
|
|
MYCFLAGS="${CFLAGS} -fPIC" \
|
|
MYLDFLAGS="${LDFLAGS}" \
|
|
CC="${CC}" \
|
|
CXX="${CXX}" \
|
|
linux
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
make \
|
|
TO_BIN='lua5.1 luac5.1' \
|
|
TO_LIB="liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.${TERMUX_PKG_VERSION}" \
|
|
INSTALL_DATA='cp -d' \
|
|
INSTALL_TOP="${TERMUX_PREFIX}" \
|
|
INSTALL_INC="${TERMUX_PREFIX}/include/lua5.1" \
|
|
INSTALL_MAN="${TERMUX_PREFIX}/share/man/man1" \
|
|
install
|
|
install -Dm644 etc/lua.pc "${TERMUX_PREFIX}/lib/pkgconfig/lua51.pc"
|
|
|
|
mv -f "${TERMUX_PREFIX}/share/man/man1/lua.1" "${TERMUX_PREFIX}/share/man/man1/lua5.1.1"
|
|
mv -f "${TERMUX_PREFIX}/share/man/man1/luac.1" "${TERMUX_PREFIX}/share/man/man1/luac5.1.1"
|
|
}
|