1 TERMUX_PKG_HOMEPAGE
=https
://github.com
/DavidGriffith
/frotz
2 TERMUX_PKG_DESCRIPTION
="Interpreter for Infocom and other Z-machine interactive fiction (IF) games"
3 # frotz does not depend on dialog or curl, but the zgames script we bundle below in termux_step_make_install() do.
4 TERMUX_PKG_DEPENDS
="ncurses, dialog, curl"
5 TERMUX_PKG_VERSION
=2.44
7 TERMUX_PKG_SRCURL
=https
://github.com
/DavidGriffith
/frotz
/archive
/${TERMUX_PKG_VERSION}.
tar.gz
8 TERMUX_PKG_SHA256
=dbb5eb3bc95275dcb984c4bdbaea58bc1f1b085b20092ce6e86d9f0bf3ba858f
9 TERMUX_PKG_BUILD_IN_SRC
=yes
11 termux_step_pre_configure
() {
12 # Pull request submitted to replace rindex() with strrchr() at
13 # https://github.com/DavidGriffith/frotz/pull/20
14 CFLAGS
+=" -Drindex=strrchr"
18 CC
="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX
=$TERMUX_PREFIX make -j
$TERMUX_MAKE_PROCESSES install
21 termux_step_make_install
() {
22 cp $TERMUX_PKG_BUILDER_DIR/zgames
$TERMUX_PREFIX/bin
/zgames
23 chmod +x
$TERMUX_PREFIX/bin
/zgames