updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / robotxq / PKGBUILD
blobbf02d36c5961affacc1f150c72591ce12d944fca
1 # Contributor: gucong <gucong43216@gmail.com>
2 pkgname=robotxq
3 pkgver=20110720
4 pkgrel=2
5 pkgdesc="Robot plays Xiangqi"
6 arch=('i686' 'x86_64')
7 url="http://github.com/gucong/robotxq"
8 license=('GPL')
9 depends=()
10 makedepends=('git' 'texlive-core' 'ttf-ms-fonts-zh_cn')
11 source=()
12 md5sums=()
14 _gitroot="http://github.com/gucong/robotxq.git"
15 _gitname="robotxq"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull master
23     msg "The local files are updated."
24   else
25     git clone $_gitroot
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   #
36   # BUILD HERE
37   #
39   ./autogen.sh
40   ./configure --prefix=/usr --sysconfdir=/etc
41   make || return 1
42   make DESTDIR="$pkgdir/" install
43