X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/59f0d218a6ff34c80cf898f6d7ac62555ba8eb11..73d77d8ac7562cd897c84c6cbcadc6346cd6dc27:/packages/frotz/build.sh diff --git a/packages/frotz/build.sh b/packages/frotz/build.sh index 80fbc129..eb0eec8b 100644 --- a/packages/frotz/build.sh +++ b/packages/frotz/build.sh @@ -1,11 +1,19 @@ -TERMUX_PKG_HOMEPAGE=http://frotz.sourceforge.net/ +TERMUX_PKG_HOMEPAGE=https://github.com/DavidGriffith/frotz TERMUX_PKG_DESCRIPTION="Interpreter for Infocom and other Z-machine interactive fiction (IF) games" -# frotz does not depend on dialog, but the script zgames we bundle below in termux_step_make_install() do. -TERMUX_PKG_DEPENDS="ncurses, dialog" -TERMUX_PKG_VERSION=2.43 -TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/frotz/frotz/${TERMUX_PKG_VERSION}/frotz-${TERMUX_PKG_VERSION}d.tar.gz +# frotz does not depend on dialog or curl, but the zgames script we bundle below in termux_step_make_install() do. +TERMUX_PKG_DEPENDS="ncurses, dialog, curl" +TERMUX_PKG_VERSION=2.44 +TERMUX_PKG_REVISION=1 +TERMUX_PKG_SRCURL=https://github.com/DavidGriffith/frotz/archive/${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=dbb5eb3bc95275dcb984c4bdbaea58bc1f1b085b20092ce6e86d9f0bf3ba858f TERMUX_PKG_BUILD_IN_SRC=yes +termux_step_pre_configure() { + # Pull request submitted to replace rindex() with strrchr() at + # https://github.com/DavidGriffith/frotz/pull/20 + CFLAGS+=" -Drindex=strrchr" +} + termux_step_make () { CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install }