updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / polka-git / PKGBUILD
blob6563a3e64cc9094b8049b8f491c0f2f0ce033f98
1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
2 # Contributor: mutlu_inek <mutlu_inek@yahoo.de>
4 pkgname=polka-git
5 pkgver=20110607
6 pkgrel=1
7 pkgdesc="A humane address book for the cloud using new ways of visualizing address book data"
8 arch=('i686' 'x86_64')
9 url="http://quickgit.kde.org/?p=scratch/cschumac/polka.git"
10 license=('GPL')
11 depends=('kdebase-runtime')
12 makedepends=('cmake' 'automoc4' 'git')
13 install=polka.install
14 provides=('polka')
15 conflicts=('polka')
17 _gitroot="git://anongit.kde.org/scratch/cschumac/polka.git"
18 _gitname="polka"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   cmake "$srcdir/$_gitname" \
39         -DCMAKE_BUILD_TYPE=Release \
40         -DCMAKE_INSTALL_PREFIX=/usr
41   make
44 package() {
45   cd "$srcdir/$_gitname-build"
46   make DESTDIR="$pkgdir/" install
47