Initial push
[termux-packages] / packages / frotz / build.sh
1 TERMUX_PKG_HOMEPAGE=http://frotz.sourceforge.net/
2 TERMUX_PKG_DESCRIPTION="Interpreter for Infocom and other Z-machine interactive fiction (IF) games"
3 # frotz does not depend on dialog, but the script zgames we bundle below in termux_step_make_install() do.
4 TERMUX_PKG_DEPENDS="ncurses, dialog"
5 TERMUX_PKG_VERSION=2.43
6 TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/frotz/frotz/${TERMUX_PKG_VERSION}/frotz-${TERMUX_PKG_VERSION}d.tar.gz
7 TERMUX_PKG_BUILD_IN_SRC=yes
8
9 termux_step_make () {
10 CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install
11 }
12
13 termux_step_make_install () {
14 cp $TERMUX_PKG_BUILDER_DIR/zgames $TERMUX_PREFIX/bin/zgames
15 chmod +x $TERMUX_PREFIX/bin/zgames
16 }