Browse Source
luarocks: specify correct path to lua interpreter when building on device
emacs-27
Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with
6 additions and
1 deletions
-
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 \ |
|
|
|