Use more source checksums
[termux-packages] / packages / frotz / build.sh
CommitLineData
efd259bf 1TERMUX_PKG_HOMEPAGE=https://github.com/DavidGriffith/frotz
59f0d218 2TERMUX_PKG_DESCRIPTION="Interpreter for Infocom and other Z-machine interactive fiction (IF) games"
7a08b435
FF
3# frotz does not depend on dialog or curl, but the zgames script we bundle below in termux_step_make_install() do.
4TERMUX_PKG_DEPENDS="ncurses, dialog, curl"
83093c05 5TERMUX_PKG_VERSION=2.44
7a08b435 6TERMUX_PKG_REVISION=1
83093c05 7TERMUX_PKG_SRCURL=https://github.com/DavidGriffith/frotz/archive/${TERMUX_PKG_VERSION}.tar.gz
f8cce0c0 8TERMUX_PKG_SHA256=dbb5eb3bc95275dcb984c4bdbaea58bc1f1b085b20092ce6e86d9f0bf3ba858f
83093c05 9TERMUX_PKG_FOLDERNAME=frotz-${TERMUX_PKG_VERSION}
59f0d218
FF
10TERMUX_PKG_BUILD_IN_SRC=yes
11
7ce56385
FF
12termux_step_pre_configure() {
13 # Pull request submitted to replace rindex() with strrchr() at
14 # https://github.com/DavidGriffith/frotz/pull/20
15 CFLAGS+=" -Drindex=strrchr"
16}
83093c05 17
59f0d218
FF
18termux_step_make () {
19 CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install
20}
21
22termux_step_make_install () {
23 cp $TERMUX_PKG_BUILDER_DIR/zgames $TERMUX_PREFIX/bin/zgames
24 chmod +x $TERMUX_PREFIX/bin/zgames
25}