updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libkdcraw-git / PKGBUILD
blob38b54d9ab0fe21b93492af115166bb4d7280931b
1 # Contributor: Flamelab <panosfilip@gmail.com> 
3 pkgname=libkdcraw-git
4 pkgver=20110528
5 pkgrel=1
6 pkgdesc='KDE Library for dcraw'
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 url="http://www.digikam.org/"
10 depends=('kdelibs' 'lcms')
11 makedepends=('git' 'automoc4' 'cmake')
12 options=('!libtool')
13 provides=('libkdcraw')
14 conflicts=('kdegraphics-libs' 'libkdcraw')
16 _gitroot="git://anongit.kde.org/libkdcraw.git"
17 _gitname="libkdcraw"
19 build() {
21 cd $srcdir
23   msg "Connecting to the GIT server...."
24   
25   if [[ -d $srcdir/$_gitname ]] ; then
26     cd $_gitname
27     git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot
31   fi
32   
33   msg "GIT checkout done"
34   msg "Starting make..."
35   if [[ -d ${srcdir}/${_gitname}-build ]]; then
36     msg "Cleaning the previous build directory..."
37     rm -rf ${srcdir}/${_gitname}-build
38   fi
39   mkdir $srcdir/$_gitname-build
40   cd $srcdir/$_gitname-build
41   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=Release \
42                 -DCMAKE_INSTALL_PREFIX=/usr
43   make
46 package() {
47   cd ${srcdir}/$_gitname-build
48   make DESTDIR=${pkgdir} install