1 # Contributor: Flamelab <panosfilip@gmail.com>
6 pkgdesc='KDE Library for dcraw'
9 url="http://www.digikam.org/"
10 depends=('kdelibs' 'lcms')
11 makedepends=('git' 'automoc4' 'cmake')
13 provides=('libkdcraw')
14 conflicts=('kdegraphics-libs' 'libkdcraw')
16 _gitroot="git://anongit.kde.org/libkdcraw.git"
23 msg "Connecting to the GIT server...."
25 if [[ -d $srcdir/$_gitname ]] ; then
28 msg "The local files are updated."
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
39 mkdir $srcdir/$_gitname-build
40 cd $srcdir/$_gitname-build
41 cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=Release \
42 -DCMAKE_INSTALL_PREFIX=/usr
47 cd ${srcdir}/$_gitname-build
48 make DESTDIR=${pkgdir} install