Skip to content

Commit

Permalink
TEST COMMIT do not merge
Browse files Browse the repository at this point in the history
related to termux#21966
validation that gnushogi upstream master branch fixes errors.
I understand that termux-packages does not accept packages of unreleased
versions,
so waiting for ydirson to officially release an update to gnushogi will
be required.
  • Loading branch information
robertkirkman committed Oct 24, 2024
1 parent 3bf8927 commit 0b4c45d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 43 deletions.
28 changes: 18 additions & 10 deletions packages/gnushogi/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,30 @@ 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() {
# "don't build pat2inc when cross-compiling, we don't need it" (sic)
# according to the comment found in the configure.ac file in the
# unreleased master branch dating to circa late 2014
# of the upstream gnushogi source code (found and installed from
# something never-released that might have once gone by the name
# "gnushogi 1.5pre")
# http://git.savannah.gnu.org/cgit/gnushogi.git/commit/configure.ac?id=189697ca6f9cbe3e2e3c0800c37ea13a0aa181c8
# https://git.savannah.gnu.org/cgit/gnushogi.git/commit?id=586cbf3d7b87b8bae3154695cc1f6dda396cca7e
# https://git.savannah.gnu.org/cgit/gnushogi.git/log/
# apply cross_compiling logic found within the upstream source code:
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 0b4c45d

Please sign in to comment.