1 # Contributor: Flamelab <panosfilip@gmail.com>
2 # PKGBUILD based on libkface-svn. Contributors:
3 # Chris Heien <chris.h.heien@gmail.com>
4 # Dany Martineau <dany.luc.martineau at gmail.com>
9 pkgdesc='LibFace Library interface for KDE'
10 arch=('i686' 'x86_64')
12 url="http://www.digikam.org/"
13 depends=('kdelibs' 'libface-svn')
14 makedepends=('git' 'cmake' 'automoc4')
18 _gitroot="git://anongit.kde.org/libkface.git"
24 msg "Connecting to the GIT server...."
26 if [[ -d $srcdir/$_gitname ]] ; then
29 msg "The local files are updated."
34 msg "GIT checkout done"
35 msg "Starting make..."
36 if [[ -d ${srcdir}/${_gitname}-build ]]; then
37 msg "Cleaning the previous build directory..."
38 rm -rf ${srcdir}/${_gitname}-build
40 mkdir $srcdir/$_gitname-build
41 cd $srcdir/$_gitname-build
42 cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=Release \
43 -DCMAKE_SKIP_RPATH=ON \
44 -DCMAKE_INSTALL_PREFIX=/usr
49 cd ${srcdir}/$_gitname-build
50 make DESTDIR=${pkgdir} install