From fdbc69830e13a118559445201610df8898aecb7d Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Fri, 16 Aug 2019 14:21:24 +0300 Subject: [PATCH] luarocks: specify correct path to lua interpreter when building on device --- packages/luarocks/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/luarocks/build.sh b/packages/luarocks/build.sh index 2974655f5..0f24d29ae 100644 --- a/packages/luarocks/build.sh +++ b/packages/luarocks/build.sh @@ -9,9 +9,14 @@ TERMUX_PKG_DEPENDS="curl, lua" TERMUX_PKG_BUILD_DEPENDS="liblua" TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_PLATFORM_INDEPENDENT=true -TERMUX_PKG_EXTRA_MAKE_ARGS="LUA=/usr/bin/lua5.3" termux_step_configure() { + if $TERMUX_ON_DEVICE_BUILD; then + TERMUX_PKG_EXTRA_MAKE_ARGS="LUA=$TERMUX_PREFIX/bin/lua" + else + TERMUX_PKG_EXTRA_MAKE_ARGS="LUA=/usr/bin/lua5.3" + fi + ./configure --prefix=$TERMUX_PREFIX \ --with-lua=$TERMUX_PREFIX \ --with-lua-include=$TERMUX_PREFIX/include \