updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / k4dirstat-git / PKGBUILD
blob1d85c7634edd67d202defb557749397a46aba2ba
1 # Maintainer: Tom Debruyne <tomdebruyne at gmail dot com>
2 pkgname=k4dirstat-git
3 pkgver=20111113
4 pkgrel=3
5 pkgdesc="A graphical disk usage utility for KDE4"
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 depends=('kdebase-lib>=4.5')
9 url=('https://bitbucket.org/jeromerobert/k4dirstat')
10 optdepends=()
11 makedepends=('docbook-xsl' 'automoc4' 'git' 'cmake')
12 provides=('k4dirstat')
13 conflicts=('k4dirstat')
15 _gitroot="https://bitbucket.org/jeromerobert/k4dirstat.git"
16 _gitname="k4dirstat"
18 build() {
19         cd ${srcdir}
20         msg "Connecting to GIT server...."
22         if [ -d ${srcdir}/$_gitname ] ; then
23         cd $_gitname && git pull origin
24         msg "The local files are updated."
25         else
26         git clone $_gitroot
27         fi
29         msg "GIT checkout done or server timeout"
30         msg "Starting make..."
32         rm -rf $srcdir/$_gitname-build
33         git clone $srcdir/$_gitname $srcdir/$_gitname-build
34   
35         cd $srcdir/$_gitname-build
36         
37         cmake -DCMAKE_INSTALL_PREFIX=/usr . || return 1
38         make || return 1
39         make DESTDIR=${pkgdir} install || return 1
40