Browse Source

lua: Fix LUA_ROOT to end with a slash

android-5
Fredrik Fornwall 8 years ago
parent
commit
256369421a
  1. 2
      packages/lua/build.sh
  2. 2
      packages/lua/src-luaconf.h.patch

2
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

2
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 \

Loading…
Cancel
Save