updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libkface-git / PKGBUILD
blob2868e066264c73c517e75a7997a0d0ade54eefa7
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>
6 pkgname=libkface-git
7 pkgver=20110324
8 pkgrel=1
9 pkgdesc='LibFace Library interface for KDE'
10 arch=('i686' 'x86_64')
11 license=('GPL')
12 url="http://www.digikam.org/"
13 depends=('kdelibs' 'libface-svn')
14 makedepends=('git' 'cmake' 'automoc4')
15 options=('!libtool')
16 provides=('libkface')
18 _gitroot="git://anongit.kde.org/libkface.git"
19 _gitname="libkface"
21 build() {
23 cd $srcdir
24   msg "Connecting to the GIT server...."
25   
26   if [[ -d $srcdir/$_gitname ]] ; then
27     cd $_gitname
28     git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot
32   fi
33   
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
39   fi
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
45   make
48 package() {
49   cd ${srcdir}/$_gitname-build
50   make DESTDIR=${pkgdir} install