# $Id: PKGBUILD 116812 2014-08-03 22:08:55Z 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.1.2
pkgrel=1
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"
license=('GPL3')
depends=('bash')
optdepends=('xboard: graphical frontend')
install=$pkgname.install
source=(http://ftp.gnu.org/pub/gnu/chess/$pkgname-$pkgver.tar.gz)
md5sums=('44e1d96f0eb04751351eccb22973e06f')

build() {
  cd "$srcdir"/$pkgname-$pkgver

  ./configure --prefix=/usr

  make  
}

package() {
  cd "$srcdir"/$pkgname-$pkgver

  make prefix="$pkgdir"/usr install
}
