[arch-commits] Commit in gnuchess/trunk (3 files)

Allan McRae allan at archlinux.org
Wed Feb 2 03:42:22 UTC 2011


    Date: Tuesday, February 1, 2011 @ 22:42:22
  Author: allan
Revision: 108647

upgpkg: gnuchess 5.08-1
upstream update

Modified:
  gnuchess/trunk/PKGBUILD
Deleted:
  gnuchess/trunk/gnuchess-gcc4.patch
  gnuchess/trunk/gnuchess-glibc210.patch

-------------------------+
 PKGBUILD                |   16 ++++++++--------
 gnuchess-gcc4.patch     |   11 -----------
 gnuchess-glibc210.patch |   39 ---------------------------------------
 3 files changed, 8 insertions(+), 58 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-02-02 03:36:29 UTC (rev 108646)
+++ PKGBUILD	2011-02-02 03:42:22 UTC (rev 108647)
@@ -3,8 +3,8 @@
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
 
 pkgname=gnuchess
-pkgver=5.07
-pkgrel=4
+pkgver=5.08
+pkgrel=1
 pkgdesc="Lets most modern computers play a full game of chess"
 url="http://www.gnu.org/software/chess/chess.html"
 arch=('i686' 'x86_64')
@@ -13,15 +13,15 @@
 source=(ftp://ftp.gnu.org/pub/gnu/chess/$pkgname-$pkgver.tar.gz
         gnuchess-gcc4.patch
         gnuchess-glibc210.patch)
-md5sums=('259da00aa559e5624c65279484fccaf7'
-         'a99f426060828d5de76f4fffe941fe7b'
-         'e7fc4876dcd7d6d4e1ff019f39408086')
+md5sums=('9db91dbac6b5b86de0c57a420a9fea57')
 
 build() {
   cd $srcdir/$pkgname-$pkgver
-  patch -Np1 -i $srcdir/gnuchess-gcc4.patch
-  patch -Np0 -i $srcdir/gnuchess-glibc210.patch
   ./configure --prefix=/usr
-  make || return 1
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
   make prefix=$pkgdir/usr install
 }

Deleted: gnuchess-gcc4.patch
===================================================================
--- gnuchess-gcc4.patch	2011-02-02 03:36:29 UTC (rev 108646)
+++ gnuchess-gcc4.patch	2011-02-02 03:42:22 UTC (rev 108647)
@@ -1,11 +0,0 @@
---- gnuchess-5.07/src/input.c.orig	2005-11-11 00:45:40.000000000 +0100
-+++ gnuchess-5.07/src/input.c	2005-11-11 00:45:51.000000000 +0100
-@@ -92,7 +92,7 @@
-   fgets(inputstr, MAXSTR, stdin);
- }
- 
--static pthread_t input_thread;
-+pthread_t input_thread;
- 
- /* Mutex and condition variable for thread communication */
- 

Deleted: gnuchess-glibc210.patch
===================================================================
--- gnuchess-glibc210.patch	2011-02-02 03:36:29 UTC (rev 108646)
+++ gnuchess-glibc210.patch	2011-02-02 03:42:22 UTC (rev 108647)
@@ -1,39 +0,0 @@
---- src/common.h.old	2009-05-28 10:26:58.000000000 +0200
-+++ src/common.h	2009-05-28 11:03:31.000000000 +0200
-@@ -745,7 +745,7 @@
-  * Input routine, initialized to one of the specific
-  * input routines. The given argument is the prompt.
-  */
--void (*getline) (char *);
-+void (*mygetline) (char *);
- 
- #define MAXSTR 128
- extern char inputstr[MAXSTR];
---- src/input.c.old	2009-05-28 10:27:06.000000000 +0200
-+++ src/input.c	2009-05-28 11:04:38.000000000 +0200
-@@ -127,7 +127,7 @@
- 	      (RealGameCnt+1)/2 + 1 );
-     }
-     pthread_mutex_lock(&input_mutex);
--    getline(prompt);
-+    mygetline(prompt);
-     input_status = INPUT_AVAILABLE;
-     pthread_cond_signal(&input_cond);
-     pthread_mutex_unlock(&input_mutex);
-@@ -173,13 +173,13 @@
- {
- #ifdef HAVE_LIBREADLINE
-   if (isatty(STDIN_FILENO)) {
--    getline = getline_readline;
-+    mygetline = getline_readline;
-     using_history();
-   } else {
--    getline = getline_standard;
-+    mygetline = getline_standard;
-   }
- #else
--  getline = getline_standard;
-+  mygetline = getline_standard;
- #endif
-   /* Start input thread */
-   pthread_create(&input_thread, NULL, input_func, NULL);




More information about the arch-commits mailing list