updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kdepim4-runtime-git / PKGBUILD
blobb1bee223febbdf5aa93efa82905e0ed8e65eb7b4
1 pkgname=kdepim4-runtime-git
2 pkgver=20110615
3 pkgrel=1
4 pkgdesc='KDE PIM Runtime Environment'
5 arch=('i686' 'x86_64')
6 url='http://www.kde.org'
7 license=('GPL' 'LGPL' 'FDL')
8 depends=('kdepimlibs4-git' 'kdebase4-runtime-git')
9 makedepends=('pkgconfig' 'cmake' 'automoc4' 'git' 'boost')
10 conflicts=('kdepim-runtime')
11 provides=('kdepim-runtime')
12 groups=('kde4-git')
13 install='kdepim4-runtime-git.install'
15 _gitroot="git://anongit.kde.org/kdepim-runtime"
16 _gitname="kdepim-runtime"
18 build() {
19   cd $srcdir
20   msg "Connecting to the GIT server...."
21   
22   if [[ -d $srcdir/$_gitname ]] ; then
23     cd $_gitname
24     git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot
28   fi
29   
30   msg "GIT checkout done"
31   msg "Starting make..."
32   if [[ -d ${srcdir}/build ]]; then
33     msg "Cleaning the previous build directory..."
34     rm -rf ${srcdir}/build
35   fi
36   mkdir $srcdir/build
37   cd $srcdir/build
38   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=debugfull \
39                 -DCMAKE_INSTALL_PREFIX=/usr \
40                 -DCMAKE_SKIP_RPATH=ON
41   make
44 package() {
45   cd ${srcdir}/build
46   make DESTDIR=${pkgdir} install