updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tsito / PKGBUILD
blob34ba68696ef43055e417db3afdb49d803ef12ace
1 # Contributor: gucong <gucong43216@gmail.com>
3 pkgname=tsito
4 pkgver=0.8.4
5 pkgrel=2
6 pkgdesc="A Xiangqi (Chinese chess) engine and command line interface"
7 arch=('i686' 'x86_64')
8 license=('custom')
9 url="http://xiangqi-engine.sourceforge.net/tsito.html"
10 depends=()
11 source=(http://ncu.dl.sourceforge.net/project/xiangqi-engine/xiangqi-engine/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz)
12 md5sums=('198b7313067959f7530d569ca9b48a1e')
14 build() {
15   cd "$srcdir/$pkgname-$pkgver"
16   sed -i 's/<string>/<string.h>/g' src/Board.cpp
17   ./configure --prefix=/usr || return 1
18   make || return 1
20 package() {
21   cd "$srcdir/$pkgname-$pkgver"
22   install -D -m 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
23   make DESTDIR="$pkgdir" install || return 1