1 # Contributor: gucong <gucong43216@gmail.com>
5 pkgdesc="Robot plays Xiangqi"
7 url="http://github.com/gucong/robotxq"
10 makedepends=('git' 'texlive-core' 'ttf-ms-fonts-zh_cn')
14 _gitroot="http://github.com/gucong/robotxq.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull master
23 msg "The local files are updated."
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"
40 ./configure --prefix=/usr --sysconfdir=/etc
42 make DESTDIR="$pkgdir/" install