termux-packages/packages/frogcomposband/build.sh
Archenoth d38fff8093 Added frogcomposband package build
This game is in the main repository due to the custom license that
Angband used to have that this project inherited
2020-08-25 08:07:21 -06:00

24 lines
852 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/sulkasormi/frogcomposband/
TERMUX_PKG_DESCRIPTION="Open world Angband variant with many additions"
TERMUX_PKG_LICENSE="custom"
TERMUX_PKG_SRCURL=https://github.com/sulkasormi/frogcomposband.git
TERMUX_PKG_VERSION=7.1.salmiak
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-x11 --bindir=$TERMUX_PREFIX/bin --sysconfdir=$TERMUX_PREFIX/share/frogcomposband"
TERMUX_PKG_RM_AFTER_INSTALL="share/angband/xtra share/angband/icons"
termux_step_pre_configure () {
./autogen.sh
perl -p -i -e 's|ncursesw5-config|ncursesw6-config|g' configure
}
termux_step_post_make_install () {
rm -Rf $TERMUX_PREFIX/share/frogcomposband/fonts
}
termux_step_install_license() {
install -Dm600 $TERMUX_PKG_BUILDER_DIR/LICENSE \
$TERMUX_PREFIX/share/doc/frogcomposband/LICENSE
}