updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / kdbg-git / PKGBUILD
blob57878ab007ac757fac846d593c944a9307759402
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=('kdbg-git')
4 pkgver=20111214
5 pkgrel=1
6 pkgdesc="A gdb GUI for KDE (git version)"
7 arch=('i686' 'x86_64')
8 depends=('kdelibs' 'gdb')
9 makedepends=('cmake' 'automoc4' 'git')
10 url="http://www.kdbg.org"
11 license=('GPL')
12 conflicts=('kdbg')
14 _gitroot="git://repo.or.cz/kdbg.git"
15 _gitname="kdbg"
17 build() {
18  msg "Connecting to kdbg GIT server...."
20   if [ -d $srcdir/$_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   # Cleanup and prepare the build dir
31   rm -rf $srcdir/$_gitname-build
32   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
34   cd $srcdir/$_gitname-build
36   cmake -DCMAKE_BUILD_TYPE=Release \
37         -DCMAKE_INSTALL_PREFIX=/usr .
38   make
41 package() {
42   cd $srcdir/$_gitname-build
44   make DESTDIR="$pkgdir" install