From 9e604ff687fae8b4a0eeef000e54e523c704184e Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 19 Dec 2018 01:19:37 +0100 Subject: [PATCH] cboard: Update from 0.7.3 to 0.7.5 --- packages/cboard/build.sh | 5 ++-- packages/cboard/libchess-pgn.c.patch | 34 ++++++++++++++-------------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/packages/cboard/build.sh b/packages/cboard/build.sh index 499e7048b..8eee40474 100644 --- a/packages/cboard/build.sh +++ b/packages/cboard/build.sh @@ -1,9 +1,8 @@ TERMUX_PKG_HOMEPAGE=https://benkibbey.wordpress.com/cboard/ TERMUX_PKG_DESCRIPTION="PGN browser, editor and chess engine frontend" -TERMUX_PKG_VERSION=0.7.3 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_VERSION=0.7.5 +TERMUX_PKG_SHA256=dd748039f3531653e1573577cd814741524e1b16e16e3a841ef512e5150da6a0 TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/c-board/${TERMUX_PKG_VERSION}/cboard-${TERMUX_PKG_VERSION}.tar.bz2 -TERMUX_PKG_SHA256=8caeabc5cccd35c0f093d36ec0088667530d92e178d328ef345c4c20052d25e2 TERMUX_PKG_DEPENDS="libandroid-support,libandroid-glob,gnuchess, ncurses, ncurses-ui-libs" termux_step_pre_configure () { diff --git a/packages/cboard/libchess-pgn.c.patch b/packages/cboard/libchess-pgn.c.patch index d8e6cdf8b..c02aa8d92 100644 --- a/packages/cboard/libchess-pgn.c.patch +++ b/packages/cboard/libchess-pgn.c.patch @@ -1,20 +1,20 @@ -diff -u -r ../cboard-0.7.3/libchess/pgn.c ./libchess/pgn.c ---- ../cboard-0.7.3/libchess/pgn.c 2015-01-14 21:18:45.000000000 -0500 -+++ ./libchess/pgn.c 2015-07-11 06:55:57.087877710 -0400 -@@ -813,7 +813,6 @@ - time_t now; - char tbuf[11] = {0}; - struct tm *tp; -- struct passwd *pw = getpwuid(getuid()); - char host[64] = { 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); -@@ -834,7 +833,7 @@ - if (pgn_tag_add(&g->tag, "Round", "-") != E_PGN_OK) - warn("pgn_tag_add()"); + 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, "White", pw->pw_gecos) != E_PGN_OK) -+ if (pgn_tag_add(&g->tag, "White", "You") != 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, "Black", "?") != E_PGN_OK) + if (pgn_tag_add (&g->tag, (char *) "Black", (char *) "?") != E_PGN_OK)