From 256369421a76b7a5dd6c0ffb482f713664ab91d2 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 25 Oct 2016 18:58:13 -0400 Subject: [PATCH] lua: Fix LUA_ROOT to end with a slash --- packages/lua/build.sh | 2 +- packages/lua/src-luaconf.h.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lua/build.sh b/packages/lua/build.sh index caf939cfd..f7b576381 100644 --- a/packages/lua/build.sh +++ b/packages/lua/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://www.lua.org/ TERMUX_PKG_DESCRIPTION="Powerful, fast, lightweight, embeddable scripting language" TERMUX_PKG_VERSION=5.3.3 -TERMUX_PKG_BUILD_REVISION=1 +TERMUX_PKG_BUILD_REVISION=2 TERMUX_PKG_SRCURL=http://www.lua.org/ftp/lua-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="readline" TERMUX_PKG_EXTRA_MAKE_ARGS=linux diff --git a/packages/lua/src-luaconf.h.patch b/packages/lua/src-luaconf.h.patch index 5fa7d64ea..fd1ce9ee6 100644 --- a/packages/lua/src-luaconf.h.patch +++ b/packages/lua/src-luaconf.h.patch @@ -6,7 +6,7 @@ diff -u -r ../lua-5.3.0/src/luaconf.h ./src/luaconf.h #else /* }{ */ -#define LUA_ROOT "/usr/local/" -+#define LUA_ROOT "@TERMUX_PREFIX@" ++#define LUA_ROOT "@TERMUX_PREFIX@/" #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" #define LUA_PATH_DEFAULT \