updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / gray-matter-svn / PKGBUILD
blob4037ff18e2c7846c8db6c83f89a28ea38cf13f7a
1 # Maintainer: evr <evanroman at gmail>
2 pkgname=gray-matter-svn
3 pkgver=1590
4 pkgrel=1
5 pkgdesc="An xboard compatible chess engine written in C++"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/gray-matter/"
8 license=('GPL3')
9 makedepends=(subversion)
10 install=${pkgname}.install
12 _svntrunk=http://gray-matter.googlecode.com/svn/trunk/
13 _svnmod=gray-matter
15 build() {
16   cd $srcdir
18   if [ -d ${_svnmod}/.svn ]; then
19     (cd ${_svnmod} && svn up -r $pkgver)
20   else
21     svn co ${_svntrunk} --config-dir ./ -r $pkgver $_svnmod
22   fi
24   cp -r ${_svnmod} $_svnmod-build
25   cd ${_svnmod}-build
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   make || return 1
32   install -D bin/gray ${pkgdir}/usr/bin/gray || return 1
33   install -D -m644 graymatter.conf.sample ${pkgdir}/usr/share/graymatter/graymatter.conf.sample || return 1
35   rm -rf ${srcdir}/${_svnmod}-build