updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libkexiv2-git / PKGBUILD
blob13596c39545e3cd8ab36af878aafe44914d55a2a
1 pkgname=libkexiv2-git
2 pkgver=20110528
3 pkgrel=1
4 pkgdesc='Libkexiv2 is a wrapper around Exiv2 library'
5 arch=('i686' 'x86_64')
6 license=('GPL')
7 url="http://www.digikam.org/"
8 depends=('kdelibs' 'exiv2')
9 makedepends=('git' 'automoc4' 'cmake')
10 conflicts=('kdegraphics-libs' 'libkexiv2')
11 provides=('libkexiv2')
13 _gitroot="git://anongit.kde.org/libkexiv2.git"
14 _gitname="libkexiv2"
16 build() {
18 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}/${_gitname}-build ]]; then
33     msg "Cleaning the previous build directory..."
34     rm -rf ${srcdir}/${_gitname}-build
35   fi
36   mkdir $srcdir/$_gitname-build
37   cd $srcdir/$_gitname-build
38   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=Release \
39                 -DCMAKE_INSTALL_PREFIX=/usr
40   make
43 package() {
44   cd ${srcdir}/$_gitname-build
45   make DESTDIR=${pkgdir} install