updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / anigma-git / PKGBUILD
blob0db2be08a1e805db3a35309b84843f8747a16758
1 # Contributor: Anomander <anomander[at]freenet[dot]de>
3 pkgname=anigma-git
4 pkgver=20090714
5 pkgrel=1
6 pkgdesc="A colourfull arcade logic game - also known as puzz-le"
7 url="http://github.com/icefox/anigma"
8 depends=('qt')
9 makedepends=('git')
10 license=('other')
11 arch=('i686' 'x86_64')
13 _gitroot="git://github.com/icefox/anigma.git"
14 _gitname="anigma"
16 build() {
17     cd $srcdir
19     msg "Connecting to GIT server..."
21     if [ -d $srcdir/$_gitname ] ; then
22         cd $_gitname && git pull origin
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     cp -r $srcdir/$_gitname $srcdir/$_gitname-build
32     cd $srcdir/$_gitname-build
34     ./configure
36     make || return 1
38     make install INSTALL_ROOT="$pkgdir"
39     install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
41     rm -r $srcdir/$_gitname-build/