updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / libqzeitgeist-git / PKGBUILD
blobb27cc540e7839c51ebbd068b6ddd4825f0558828
1 pkgname=libqzeitgeist-git
2 pkgver=20111026
3 pkgrel=1
4 pkgdesc="A Qt interface to the Zeitgeist event tracking system"
5 url="https://projects.kde.org/projects/kdesupport/libqzeitgeist"
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 depends=('qt')
9 makedepends=('git' 'cmake' 'zeitgeist')
10 conflicts=('libqzeitgeist')
11 provides=('libqzeitgeist')
12 groups=('kde4-git')
14 _gitroot="git://anongit.kde.org/libqzeitgeist"
15 _gitname="libqzeitgeist"
17 build() {
18   cd $srcdir
19   msg "Connecting to the GIT server...."
20   
21   if [[ -d $srcdir/$_gitname ]] ; then
22     cd $_gitname
23     git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
28   
29   msg "GIT checkout done"
30   msg "Starting make..."
31   if [[ -d ${srcdir}/build ]]; then
32     msg "Cleaning the previous build directory..."
33     rm -rf ${srcdir}/build
34   fi
35   git clone $srcdir/$_gitname $srcdir/build
36   sed -i -e "s|env python|env python2|" $srcdir/build/scripts/onto2cpp.py
37   mkdir $srcdir/build/build
38   cd $srcdir/build/build
39   cmake ../ -DCMAKE_BUILD_TYPE=debugfull \
40         -DCMAKE_INSTALL_PREFIX=/usr 
41   make
44 package() {
45   cd ${srcdir}/build/build
46   make DESTDIR=${pkgdir} install