PKGBUILDs/extra/gnuchess/PKGBUILD
2009-10-09 21:23:22 -05:00

27 lines
851 B
Bash

# $Id: PKGBUILD 42937 2009-06-19 03:54:37Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=gnuchess
pkgver=5.07
pkgrel=4
pkgdesc="Lets most modern computers play a full game of chess"
url="http://www.gnu.org/software/chess/chess.html"
arch=('i686' 'x86_64')
license=('GPL')
depends=('glibc' 'ncurses' 'readline')
source=(ftp://ftp.gnu.org/pub/gnu/chess/$pkgname-$pkgver.tar.gz
gnuchess-gcc4.patch
gnuchess-glibc210.patch)
md5sums=('259da00aa559e5624c65279484fccaf7'
'a99f426060828d5de76f4fffe941fe7b'
'e7fc4876dcd7d6d4e1ff019f39408086')
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 prefix=$pkgdir/usr install
}