Cleanup of more packages
[termux-packages] / packages / gnushogi / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/gnushogi/
2TERMUX_PKG_DESCRIPTION="Program that plays the game of Shogi, also known as Japanese Chess"
3TERMUX_PKG_VERSION=1.4.2
4TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/gnushogi/gnushogi-${TERMUX_PKG_VERSION}.tar.gz
150f95af 5TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_curses_clrtoeol=yes --with-curses"
59f0d218
FF
6TERMUX_PKG_RM_AFTER_INSTALL="info/gnushogi.info"
7TERMUX_PKG_DEPENDS="ncurses"
8TERMUX_PKG_HOSTBUILD=yes
7ce56385
FF
9
10termux_step_pre_configure() {
11 CFLAGS+=" $CPPFLAGS"
12}
59f0d218
FF
13
14termux_step_post_configure () {
15 cp $TERMUX_PKG_HOSTBUILD_DIR/gnushogi/pat2inc $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc
16 # Update timestamps so that the binaries does not get rebuilt:
17 $TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc
18}