termux-packages/packages/gnushogi/build.sh

24 lines
954 B
Bash
Raw Permalink Normal View History

2018-05-25 10:38:52 +00:00
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gnushogi/
2015-06-12 23:03:31 +00:00
TERMUX_PKG_DESCRIPTION="Program that plays the game of Shogi, also known as Japanese Chess"
2019-01-21 12:53:58 +00:00
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
2015-06-12 23:03:31 +00:00
TERMUX_PKG_VERSION=1.4.2
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gnushogi/gnushogi-${TERMUX_PKG_VERSION}.tar.gz
2017-03-26 23:56:11 +00:00
TERMUX_PKG_SHA256=1ecc48a866303c63652552b325d685e7ef5e9893244080291a61d96505d52b29
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_curses_clrtoeol=yes --with-curses"
2015-06-12 23:03:31 +00:00
TERMUX_PKG_RM_AFTER_INSTALL="info/gnushogi.info"
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_GROUPS="games"
2016-09-03 22:45:08 +00:00
termux_step_pre_configure() {
2021-11-27 09:21:31 +00:00
CFLAGS+=" $CPPFLAGS -fcommon"
2016-09-03 22:45:08 +00:00
}
2015-06-12 23:03:31 +00:00
termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/gnushogi/pat2inc $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc
# Update timestamps so that the binaries does not get rebuilt:
touch -d "next hour" $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc
2015-06-12 23:03:31 +00:00
}