updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / gwenview-git / PKGBUILD
blobdc0de9a1b458f1d9b90154c689b40f9d7ffa0845
1 pkgname=gwenview-git
2 pkgver=20110717
3 pkgrel=1
4 pkgdesc='Image viewer for KDE'
5 arch=('i686' 'x86_64')
6 license=('GPL')
7 url="http://kde.org/"
8 depends=('kdebase4-lib-git' 'libkipi-git')
9 makedepends=('git' 'automoc4' 'cmake')
10 optdepends=('kipi-plugins-git: extra plugins to share photos')
11 conflicts=('kdegraphics-gwenview')
12 groups=('kde4-git')
14 _gitroot="git://anongit.kde.org/gwenview.git"
15 _gitname="gwenview"
17 build() {
19 cd $srcdir
21   msg "Connecting to the GIT server...."
22   
23   if [[ -d $srcdir/$_gitname ]] ; then
24     cd $_gitname
25     git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
30   
31   msg "GIT checkout done"
32   msg "Starting make..."
33   if [[ -d ${srcdir}/${_gitname}-build ]]; then
34     msg "Cleaning the previous build directory..."
35     rm -rf ${srcdir}/${_gitname}-build
36   fi
37   mkdir $srcdir/$_gitname-build
38   cd $srcdir/$_gitname-build
39   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=Release \
40                 -DCMAKE_INSTALL_PREFIX=/usr
41   make
44 package() {
45   cd ${srcdir}/$_gitname-build
46   make DESTDIR=${pkgdir} install