termux-packages/packages/luarocks/build.sh

23 lines
787 B
Bash
Raw Normal View History

2016-11-26 00:20:40 +01:00
TERMUX_PKG_HOMEPAGE=https://luarocks.org/
2015-06-13 01:03:31 +02:00
TERMUX_PKG_DESCRIPTION="Deployment and management system for Lua modules"
TERMUX_PKG_LICENSE="BSD"
2019-06-08 01:53:52 +02:00
TERMUX_PKG_VERSION=3.1.3
2016-11-26 00:20:40 +01:00
TERMUX_PKG_SRCURL=https://luarocks.org/releases/luarocks-${TERMUX_PKG_VERSION}.tar.gz
2019-06-08 01:53:52 +02:00
TERMUX_PKG_SHA256=c573435f495aac159e34eaa0a3847172a2298eb6295fcdc35d565f9f9b990513
TERMUX_PKG_DEPENDS="curl, lua"
TERMUX_PKG_BUILD_DEPENDS="liblua-dev"
2015-06-13 01:03:31 +02:00
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
TERMUX_PKG_EXTRA_MAKE_ARGS="LUA=/usr/bin/lua5.3"
2015-06-13 01:03:31 +02:00
termux_step_configure() {
2016-11-26 00:20:40 +01:00
./configure --prefix=$TERMUX_PREFIX \
--with-lua=$TERMUX_PREFIX \
2019-06-08 01:53:52 +02:00
--with-lua-include=$TERMUX_PREFIX/include \
--lua-version=5.3
2015-06-13 01:03:31 +02:00
}
2019-06-08 01:53:52 +02:00
termux_step_post_massage() {
sed -i "1 s|$|lua|" bin/luarocks
sed -i "1 s|$|lua|" bin/luarocks-admin
}