From: Fredrik Fornwall Date: Wed, 18 Jan 2017 00:45:10 +0000 (+0100) Subject: luarocks: Add patch and mark platform-independent X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/8ceb11939be44947b46e9988eb27fa81dd61f9c6?hp=bf40bc8ff6984bd278187fd0533f2c8508856b75 luarocks: Add patch and mark platform-independent --- diff --git a/packages/luarocks/build.sh b/packages/luarocks/build.sh index 772ae2ce..3d139e36 100644 --- a/packages/luarocks/build.sh +++ b/packages/luarocks/build.sh @@ -2,8 +2,10 @@ TERMUX_PKG_HOMEPAGE=https://luarocks.org/ TERMUX_PKG_DESCRIPTION="Deployment and management system for Lua modules" TERMUX_PKG_VERSION=2.4.2 TERMUX_PKG_SRCURL=https://luarocks.org/releases/luarocks-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=0e1ec34583e1b265e0fbafb64c8bd348705ad403fe85967fd05d3a659f74d2e5 TERMUX_PKG_DEPENDS="curl, lua" TERMUX_PKG_BUILD_IN_SRC=yes +TERMUX_PKG_PLATFORM_INDEPENDENT=yes termux_step_configure () { ./configure --prefix=$TERMUX_PREFIX \ diff --git a/packages/luarocks/configure.patch b/packages/luarocks/configure.patch new file mode 100644 index 00000000..ed4c8dd8 --- /dev/null +++ b/packages/luarocks/configure.patch @@ -0,0 +1,30 @@ +diff -u -r ../luarocks-2.4.2/configure ./configure +--- ../luarocks-2.4.2/configure 2016-11-30 13:49:34.000000000 +0100 ++++ ./configure 2017-01-18 01:34:32.289341721 +0100 +@@ -305,26 +305,6 @@ + } + fi + +-if [ "$lua_interp_found" != "yes" ] +-then +- [ "$LUA_VERSION_SET" ] && { interp="Lua $LUA_VERSION" ;} || { interp="Lua" ;} +- [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ] && { where="$LUA_BINDIR" ;} || { interp="\$PATH" ;} +- echo "$interp interpreter not found in $where" +- die "You may want to use the flags --with-lua, --with-lua-bin and/or --lua-suffix. See --help." +-fi +- +-if [ "$LUA_VERSION_SET" = "yes" ] +-then +- echo_n "Checking if $LUA_BINDIR/lua$LUA_SUFFIX is Lua version $LUA_VERSION... " +- if detect_lua_version "$LUA_BINDIR/lua$LUA_SUFFIX" +- then +- echo "yes" +- else +- echo "no" +- die "You may want to use the flags --with-lua, --with-lua-bin and/or --lua-suffix. See --help." +- fi +-fi +- + if [ "$LUA_INCDIR_SET" != "yes" ] + then + LUA_INCDIR="$LUA_DIR/include"