| 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_REVISION=1 |
| 5 | TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gnushogi/gnushogi-${TERMUX_PKG_VERSION}.tar.gz |
| 6 | TERMUX_PKG_SHA256=1ecc48a866303c63652552b325d685e7ef5e9893244080291a61d96505d52b29 |
| 7 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_curses_clrtoeol=yes --with-curses" |
| 8 | TERMUX_PKG_RM_AFTER_INSTALL="info/gnushogi.info" |
| 9 | TERMUX_PKG_DEPENDS="ncurses" |
| 10 | TERMUX_PKG_HOSTBUILD=yes |
| 11 | |
| 12 | termux_step_pre_configure() { |
| 13 | CFLAGS+=" $CPPFLAGS" |
| 14 | } |
| 15 | |
| 16 | termux_step_post_configure () { |
| 17 | cp $TERMUX_PKG_HOSTBUILD_DIR/gnushogi/pat2inc $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc |
| 18 | # Update timestamps so that the binaries does not get rebuilt: |
| 19 | touch -d "next hour" $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc |
| 20 | } |