[arch-commits] Commit in gnuchess/trunk (PKGBUILD gnuchess.install)

Jonathan Steel jsteel at nymeria.archlinux.org
Mon Nov 11 19:27:13 UTC 2013


    Date: Monday, November 11, 2013 @ 20:27:12
  Author: jsteel
Revision: 100841

upgpkg: gnuchess 6.1.0-1

Added:
  gnuchess/trunk/gnuchess.install
Modified:
  gnuchess/trunk/PKGBUILD

------------------+
 PKGBUILD         |   19 ++++++++++---------
 gnuchess.install |   20 ++++++++++++++++++++
 2 files changed, 30 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-11-11 19:09:18 UTC (rev 100840)
+++ PKGBUILD	2013-11-11 19:27:12 UTC (rev 100841)
@@ -1,19 +1,20 @@
 # $Id$
-# Maintainer: Jonathan Steel <mail at jsteel.org>
+# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>
 # Contributor: Allan McRae <allan at archlinux.org>
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
 
 pkgname=gnuchess
-pkgver=6.0.3
+pkgver=6.1.0
 pkgrel=1
-pkgdesc="Lets most modern computers play a full game of chess"
+pkgdesc="Play chess against the computer on a terminal and an engine for graphical chess frontends"
+arch=('i686' 'x86_64')
 url="http://www.gnu.org/software/chess/chess.html"
-arch=('i686' 'x86_64')
-license=('GPL')
-depends=('glibc' 'ncurses' 'readline')
-optdepends=('xboard: for a GUI')
-source=(ftp://ftp.gnu.org/pub/gnu/chess/$pkgname-$pkgver.tar.gz)
-md5sums=('28625afb8f48b86211ee1d217c308064')
+license=('GPL3')
+depends=('bash')
+optdepends=('xboard: graphical frontend')
+install=$pkgname.install
+source=(http://ftp.gnu.org/pub/gnu/chess/$pkgname-$pkgver.tar.gz)
+md5sums=('41b0771cee225eff9563d42e7f93263c')
 
 build() {
   cd "$srcdir"/$pkgname-$pkgver

Added: gnuchess.install
===================================================================
--- gnuchess.install	                        (rev 0)
+++ gnuchess.install	2013-11-11 19:27:12 UTC (rev 100841)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(gnuchess.info)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}




More information about the arch-commits mailing list