gnuchess: mv package from main repository

This commit is contained in:
Henrik Grimler 2020-04-22 20:13:37 +02:00
parent 329eb828a0
commit 43a1484f71
3 changed files with 34 additions and 0 deletions

View File

@ -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"

View File

@ -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 );
}

View File

@ -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 */