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