updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / openpref-git / PKGBUILD
blobcba2b61bc3dbee4371f66761a36f11be6752a867
1 pkgname=openpref-git
2 pkgver=20100807
3 pkgrel=2
4 pkgdesc="Preferans -- quite old European card game mostly popular in Russia"
5 arch=('i686' 'x86_64')
6 url="http://openpref.sourceforge.net/"
7 license=('GPL')
8 depends=('qt' )
9 makedepends=('cmake>=2.4.8' 'git')
10 provides=('openpref')
11 conflicts=('openpref')
13 _gitroot="http://git.gitorious.org/~annulen/openprefqt4/annulens-clone.git"
14 _gitname="annulens-clone"
16 build() {
17   cd $srcdir
19   if [ -d $_gitname ]; then
20           echo "Pulling changes"
21     cd $_gitname && git pull origin || return 1
22   else
23     git clone $_gitroot || return 1
24   fi
26   cd $srcdir
27   mkdir -p build
28   cd build
29   cmake -D CMAKE_INSTALL_PREFIX="/usr" -D BIN_INSTALL_DIR=bin ../$_gitname
30   make || return 1
31   make DESTDIR="${pkgdir}" install