From 255208c98c1e4e0e0d2c7490b394b0b75ac79f99 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 22 Apr 2020 20:36:32 +0200 Subject: [PATCH] cboard: mv to game-packages --- packages/cboard/build.sh | 19 --------- packages/cboard/configure.patch | 60 ---------------------------- packages/cboard/libchess-pgn.c.patch | 20 ---------- 3 files changed, 99 deletions(-) delete mode 100644 packages/cboard/build.sh delete mode 100644 packages/cboard/configure.patch delete mode 100644 packages/cboard/libchess-pgn.c.patch diff --git a/packages/cboard/build.sh b/packages/cboard/build.sh deleted file mode 100644 index 4a5270fa2..000000000 --- a/packages/cboard/build.sh +++ /dev/null @@ -1,19 +0,0 @@ -TERMUX_PKG_HOMEPAGE=https://benkibbey.wordpress.com/cboard/ -TERMUX_PKG_DESCRIPTION="PGN browser, editor and chess engine frontend" -TERMUX_PKG_LICENSE="GPL-2.0" -TERMUX_PKG_VERSION=0.7.5 -TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/c-board/${TERMUX_PKG_VERSION}/cboard-${TERMUX_PKG_VERSION}.tar.bz2 -TERMUX_PKG_SHA256=dd748039f3531653e1573577cd814741524e1b16e16e3a841ef512e5150da6a0 -TERMUX_PKG_DEPENDS="libandroid-support,libandroid-glob,gnuchess, ncurses, ncurses-ui-libs" - -termux_step_pre_configure() { - CFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX" - LDFLAGS+=" -landroid-glob" - - if $TERMUX_DEBUG; then - # When doing debug build, -D_FORTIFY_SOURCE=2 gives this error: - # /home/builder/.termux-build/cboard/src/libchess/pgn.c:2235:33: error: 'umask' called with invalid mode - # mode = umask(600); - export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/} - fi -} diff --git a/packages/cboard/configure.patch b/packages/cboard/configure.patch deleted file mode 100644 index 38c46eb94..000000000 --- a/packages/cboard/configure.patch +++ /dev/null @@ -1,60 +0,0 @@ -diff -uNr cboard-0.7.5/configure cboard-0.7.5.mod/configure ---- cboard-0.7.5/configure 2018-09-27 17:48:24.000000000 +0300 -+++ cboard-0.7.5.mod/configure 2019-08-16 14:05:44.294565834 +0300 -@@ -12194,13 +12194,8 @@ - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unix98 pty support" >&5 - $as_echo_n "checking for Unix98 pty support... " >&6; } --if test -c "/dev/ptmx"; then -- have_ptmx=yes --else -- have_ptmx=no --fi -- --ptmx_works=no -+have_ptmx=yes -+ptmx_works=yes - - if test "x$have_ptmx" = "xyes"; then - ac_ext=c -@@ -12210,40 +12205,7 @@ - ac_compiler_gnu=$ac_cv_c_compiler_gnu - - if test "$cross_compiling" = yes; then : -- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 --$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} --as_fn_error $? "cannot run test program while cross compiling --See \`config.log' for more details" "$LINENO" 5; } --else -- cat confdefs.h - <<_ACEOF >conftest.$ac_ext --/* end confdefs.h. */ --\ -- #include -- #include -- #include -- #include -- -- int main() -- { -- int fd; -- -- if ((fd = open("/dev/ptmx", O_RDWR)) == -1) -- exit(1); -- -- if (ptsname(fd) == NULL) -- exit(1); -- -- exit(0); -- } -- --_ACEOF --if ac_fn_c_try_run "$LINENO"; then : - ptmx_works=yes --else -- ptmx_works=no --fi --rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -- conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - - diff --git a/packages/cboard/libchess-pgn.c.patch b/packages/cboard/libchess-pgn.c.patch deleted file mode 100644 index c02aa8d92..000000000 --- a/packages/cboard/libchess-pgn.c.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -u -r ../cboard-0.7.5/libchess/pgn.c ./libchess/pgn.c ---- ../cboard-0.7.5/libchess/pgn.c 2018-09-17 15:58:48.000000000 +0000 -+++ ./libchess/pgn.c 2018-12-19 00:16:27.204984323 +0000 -@@ -883,7 +883,6 @@ - time_t now; - char tbuf[11] = { 0 }; - struct tm *tp; -- struct passwd *pw = getpwuid (getuid ()); - char host[64] = { 0 }; - - time (&now); -@@ -904,7 +903,7 @@ - if (pgn_tag_add (&g->tag, (char *) "Round", (char *) "-") != E_PGN_OK) - warn ("pgn_tag_add()"); - -- if (pgn_tag_add (&g->tag, (char *) "White", pw->pw_gecos) != E_PGN_OK) -+ if (pgn_tag_add (&g->tag, (char *) "White", (char *) "You") != E_PGN_OK) - warn ("pgn_tag_add()"); - - if (pgn_tag_add (&g->tag, (char *) "Black", (char *) "?") != E_PGN_OK)