summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75a980d9dd073199e03b1e1a076e911ae921f73a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pkgname=chess_toolkit-git
pkgver=20150620
pkgrel=1
pkgdesc="Fast chess toolkit written in C. GIT repository."
arch=('i686' 'x86_64')
url="https://github.com/stevecancode/chess_toolkit"
license=('Apache')
depends=('glibc')
makedepends=('patch' 'gcc' 'make' 'autoconf' 'automake' 'texinfo' 'help2man' 'bison' 'flex' 'git' 'glibc' 'check')
_gitroot="https://github.com/stevecancode/chess_toolkit.git"
_gitname="chess_toolkit"

build() {
	if [ -d $srcdir/$_gitname ]
	then
		msg "Updating local repository."
		cd $srcdir/$_gitname && git pull
	else
		git clone $_gitroot
		cd $_gitname
	fi
    patch -p1 < ../../ct.patch
	./configure --prefix=/usr || return 1
	make clean || return 1
	make -j3 || return 1
}

package() {
	cd "$srcdir/$_gitname"
	make DESTDIR="$pkgdir/" install
}