updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / colibri-git / PKGBUILD
blobc50583bc9cc76dbfb1cf8a736baf76b5a346e43d
1 # Contributor : Martin Lee <hellnest.fuah@gmail.com>
3 pkgname=colibri-git
4 pkgver=20110530
5 pkgrel=1
6 pkgdesc="Colibri provides an alternative to KDE4 Plasma notifications, git
7 version"
8 arch=('i686' 'x86_64')
9 url="http://gitorious.org/colibri"
10 provides=('notification-daemon')
11 conflicts=('colibri')
12 license=('GPL')
13 depends=('kdebase-workspace>=4.4')
14 makedepends=('gcc' 'cmake' 'automoc4')
15 install=colibri.install
16 _gitroot=git://gitorious.org/colibri/colibri.git
17 _gitname=colibri
19 build() {
20   cd $srcdir
21   msg "Connecting to GIT server...."
23   if [ -d ${srcdir}/$_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "Local copy is up to date"
26   else
27     git clone $_gitroot
28     cd $_gitname
29   fi
30   msg "GIT Checkout Done"
32   rm -rf $_gitname-build
33   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
35   cd $srcdir/$_gitname-build
37   mkdir build && cd build
38   cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../ || return 1
39   make DESTDIR="$pkgdir/" install || return 1