updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / libkgeomap-git / PKGBUILD
blob318c37dcf7be0f66736b37c552f3300f30672848
1 # Contributor: Flamelab <panosfilip@gmail.com> 
2 # PKGBUILD based on libkmap-svn
4 pkgname=libkgeomap-git
5 pkgver=20110724
6 pkgrel=1
7 pkgdesc='Libkgeomap is a wrapper around different world-map components, to browse and arrange photos over a map.'
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 url="http://www.digikam.org/"
11 depends=('kdelibs' 'kdeedu-marble')
12 makedepends=('git' 'cmake' 'automoc4')
13 options=('!libtool')
14 provides=('libkmap')
16 _gitroot="git://anongit.kde.org/libkgeomap.git"
17 _gitname="libkgeomap"
19 build() {
21 cd $srcdir
22   msg "Connecting to the GIT server...."
23   
24   if [[ -d $srcdir/$_gitname ]] ; then
25     cd $_gitname
26     git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot
30   fi
31   
32   msg "GIT checkout done"
33   msg "Starting make..."
34   if [[ -d ${srcdir}/${_gitname}-build ]]; then
35     msg "Cleaning the previous build directory..."
36     rm -rf ${srcdir}/${_gitname}-build
37   fi
38   mkdir $srcdir/$_gitname-build
39   cd $srcdir/$_gitname-build
40   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=Release \
41                 -DCMAKE_SKIP_RPATH=ON \
42                 -DCMAKE_INSTALL_PREFIX=/usr
43   make
46 package() {
47   cd ${srcdir}/$_gitname-build
48   make DESTDIR=${pkgdir} install