diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/gnuchess | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/gnuchess')
-rw-r--r-- | community/gnuchess/PKGBUILD | 21 | ||||
-rw-r--r-- | community/gnuchess/gnuchess.install | 20 |
2 files changed, 31 insertions, 10 deletions
diff --git a/community/gnuchess/PKGBUILD b/community/gnuchess/PKGBUILD index d68d886f0..706455305 100644 --- a/community/gnuchess/PKGBUILD +++ b/community/gnuchess/PKGBUILD @@ -1,19 +1,20 @@ -# $Id: PKGBUILD 88493 2013-04-18 15:55:51Z jsteel $ -# Maintainer: Jonathan Steel <mail@jsteel.org> +# $Id: PKGBUILD 101444 2013-11-25 18:39:13Z jsteel $ +# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org> # Contributor: Allan McRae <allan@archlinux.org> # Contributor: Tom Newsom <Jeepster@gmx.co.uk> pkgname=gnuchess -pkgver=6.0.3 +pkgver=6.1.1 pkgrel=1 -pkgdesc="Lets most modern computers play a full game of chess" -url="http://www.gnu.org/software/chess/chess.html" +pkgdesc="Play chess against the computer on a terminal and an engine for graphical chess frontends" 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') +url="http://www.gnu.org/software/chess/chess.html" +license=('GPL3') +depends=('bash') +optdepends=('xboard: graphical frontend') +install=$pkgname.install +source=(http://ftp.gnu.org/pub/gnu/chess/$pkgname-$pkgver.tar.gz) +md5sums=('1299cbd0025a7cf4fbba21e6c2ef6278') build() { cd "$srcdir"/$pkgname-$pkgver diff --git a/community/gnuchess/gnuchess.install b/community/gnuchess/gnuchess.install new file mode 100644 index 000000000..43d005279 --- /dev/null +++ b/community/gnuchess/gnuchess.install @@ -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 +} |