From 43a1484f71a737688f2e5f3aa03667a77ffefd53 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 22 Apr 2020 20:13:37 +0200 Subject: [PATCH] gnuchess: mv package from main repository --- packages/gnuchess/build.sh | 9 +++++++++ packages/gnuchess/components.cc.patch | 11 +++++++++++ packages/gnuchess/main.cc.patch | 14 ++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 packages/gnuchess/build.sh create mode 100644 packages/gnuchess/components.cc.patch create mode 100644 packages/gnuchess/main.cc.patch diff --git a/packages/gnuchess/build.sh b/packages/gnuchess/build.sh new file mode 100644 index 000000000..770ceaf12 --- /dev/null +++ b/packages/gnuchess/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/chess/ +TERMUX_PKG_DESCRIPTION="Chess-playing program" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_VERSION=6.2.6 +TERMUX_PKG_REVISION=2 +TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/chess/gnuchess-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=d617f875d6411378c6ce521663ebda42db9006a5eb5706bcd821a918c06eb04f +TERMUX_PKG_DEPENDS="libc++, ncurses, readline" +TERMUX_PKG_RM_AFTER_INSTALL="bin/gnuchessu bin/gnuchessx" diff --git a/packages/gnuchess/components.cc.patch b/packages/gnuchess/components.cc.patch new file mode 100644 index 000000000..f713e8e6f --- /dev/null +++ b/packages/gnuchess/components.cc.patch @@ -0,0 +1,11 @@ +diff -uNr gnuchess-6.2.5/src/components.cc gnuchess-6.2.5.mod/src/components.cc +--- gnuchess-6.2.5/src/components.cc 2017-06-11 18:17:14.000000000 +0300 ++++ gnuchess-6.2.5.mod/src/components.cc 2018-11-09 14:17:10.952608702 +0200 +@@ -171,6 +171,6 @@ + + void TerminateInput() + { +- pthread_cancel( input_thread ); ++ pthread_kill( input_thread, 0 ); + pthread_join( input_thread, NULL ); + } diff --git a/packages/gnuchess/main.cc.patch b/packages/gnuchess/main.cc.patch new file mode 100644 index 000000000..e3df1ed4c --- /dev/null +++ b/packages/gnuchess/main.cc.patch @@ -0,0 +1,14 @@ +diff -u -r ../gnuchess-6.2.1/src/main.cc ./src/main.cc +--- ../gnuchess-6.2.1/src/main.cc 2015-01-04 05:10:41.000000000 -0500 ++++ ./src/main.cc 2015-01-05 20:40:16.816570715 -0500 +@@ -237,8 +237,8 @@ + char opt_addbook[MAXSTR+1] = ""; + char *endptr; + +- /*disable graphic output by default */ +- graphicmodeoutput = 0; ++ /*enable graphic output by default */ ++ graphicmodeoutput = 1; + + + progname = argv[0]; /* Save in global for cmd_usage */