termux-packages/packages/frogcomposband/build.sh
Tee KOBAYASHI d25d42347b packages: Fix hardcoded package name
in `termux_step_install_license()`.

%ci:no-build
2022-05-07 07:31:31 +09:00

25 lines
886 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_MAINTAINER="@termux"
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/$TERMUX_PKG_NAME/LICENSE
}