gnuchess: mv package from main repository
This commit is contained in:
parent
329eb828a0
commit
43a1484f71
9
packages/gnuchess/build.sh
Normal file
9
packages/gnuchess/build.sh
Normal 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"
|
11
packages/gnuchess/components.cc.patch
Normal file
11
packages/gnuchess/components.cc.patch
Normal 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 );
|
||||
}
|
14
packages/gnuchess/main.cc.patch
Normal file
14
packages/gnuchess/main.cc.patch
Normal 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 */
|
Loading…
Reference in New Issue
Block a user