termux-packages/packages/frotz/build.sh

26 lines
1.0 KiB
Bash
Raw Normal View History

2017-03-01 22:14:15 +01:00
TERMUX_PKG_HOMEPAGE=https://github.com/DavidGriffith/frotz
2015-06-13 01:03:31 +02:00
TERMUX_PKG_DESCRIPTION="Interpreter for Infocom and other Z-machine interactive fiction (IF) games"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
# 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"
2015-08-30 11:14:41 +02:00
TERMUX_PKG_VERSION=2.44
TERMUX_PKG_REVISION=1
2015-08-30 11:14:41 +02:00
TERMUX_PKG_SRCURL=https://github.com/DavidGriffith/frotz/archive/${TERMUX_PKG_VERSION}.tar.gz
2017-03-27 05:11:31 +02:00
TERMUX_PKG_SHA256=dbb5eb3bc95275dcb984c4bdbaea58bc1f1b085b20092ce6e86d9f0bf3ba858f
2015-06-13 01:03:31 +02:00
TERMUX_PKG_BUILD_IN_SRC=yes
2016-09-04 00:45:08 +02:00
termux_step_pre_configure() {
# Pull request submitted to replace rindex() with strrchr() at
# https://github.com/DavidGriffith/frotz/pull/20
CFLAGS+=" -Drindex=strrchr"
}
2015-08-30 11:14:41 +02:00
termux_step_make() {
2015-06-13 01:03:31 +02:00
CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install
}
termux_step_make_install() {
2015-06-13 01:03:31 +02:00
cp $TERMUX_PKG_BUILDER_DIR/zgames $TERMUX_PREFIX/bin/zgames
chmod +x $TERMUX_PREFIX/bin/zgames
}