Skip to content

Commit

Permalink
gnushogi: test commit do not merge
Browse files Browse the repository at this point in the history
  • Loading branch information
robertkirkman committed Oct 24, 2024
1 parent 3bf8927 commit 57067aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 43 deletions.
18 changes: 8 additions & 10 deletions packages/gnushogi/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gnushogi/
TERMUX_PKG_DESCRIPTION="Program that plays the game of Shogi, also known as Japanese Chess"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
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
TERMUX_PKG_SHA256=1ecc48a866303c63652552b325d685e7ef5e9893244080291a61d96505d52b29
TERMUX_PKG_VERSION=1.5pre
TERMUX_PKG_SRCURL=https://git.savannah.gnu.org/cgit/gnushogi.git/snapshot/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74.tar.gz
TERMUX_PKG_SHA256=3d3e4c0d7ce29cd0c18bcd2020a7330dd7d4b15b18b08ec493fffa13cc92a5f9
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_curses_clrtoeol=yes --with-curses"
TERMUX_PKG_RM_AFTER_INSTALL="info/gnushogi.info"
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_GROUPS="games"

termux_step_pre_configure() {
CFLAGS+=" $CPPFLAGS -fcommon"
termux_step_host_build() {
cd "$TERMUX_PKG_SRCDIR"
cross_compiling=yes ./autogen.sh
}

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
termux_step_pre_configure() {
CFLAGS+=" $CPPFLAGS -fcommon"
}
21 changes: 0 additions & 21 deletions packages/gnushogi/gnushogi-makefile-in.patch

This file was deleted.

12 changes: 0 additions & 12 deletions packages/gnushogi/use_libncurses.patch

This file was deleted.

0 comments on commit 57067aa

Please sign in to comment.