updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / kolourpaint-git / PKGBUILD
blob0af96a32a09227311dc44314f7cf3f1983c64dc3
1 pkgname=kolourpaint-git
2 pkgver=20110711
3 pkgrel=1
4 pkgdesc='KolourPaint is an easy-to-use paint program'
5 arch=('i686' 'x86_64')
6 license=('GPL')
7 url="http://kde.org/"
8 depends=('kdebase4-runtime-git' 'qimageblitz')
9 makedepends=('git' 'automoc4' 'cmake')
10 conflicts=('kdegraphics-kolourpaint')
11 provides=('kdegraphics-kolourpaint')
12 groups=('kde4-git')
14 _gitroot="git://anongit.kde.org/kolourpaint.git"
15 _gitname="kolourpaint"
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