updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kdebase-konsole-git / PKGBUILD
blobaaf88995fa96ac232fdb468ae3838f70ca7a64b5
1 # Maintainer: Justin Gottula <justin@jgottula.com>
2 pkgname=kdebase-konsole-git
3 pkgver=20110911
4 pkgrel=1
5 arch=('i686' 'x86_64')
6 url='http://kde.org/applications/system/konsole/'
7 pkgdesc="Terminal"
8 license=('GPL' 'LGPL' 'FDL')
9 groups=('kde' 'kdebase')
10 depends=('kdebase-runtime')
11 makedepends=('cmake' 'automoc4')
12 provides=('kdebase-konsole')
13 conflicts=('kdebase-konsole')
14 source=()
15 sha1sums=()
17 _gitroot="git://anongit.kde.org/konsole"
18 _gitname="konsole"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
37   
38   cmake -DCMAKE_BUILD_TYPE=Release \
39     -DCMAKE_INSTALL_PREFIX=/usr
40   make
43 package() {
44   cd "${srcdir}/$_gitname-build"
45   make DESTDIR="${pkgdir}" install