updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / path64-debugger-git / PKGBUILD
blobe3ad87318915e5aead14e2a0eb3c3a11f698a4de
1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 pkgname=path64-debugger-git
3 pkgver=20110617
4 pkgrel=1
5 pkgdesc="PathScale debugger"
6 arch=('x86_64')
7 url="http://www.path64.org/"
8 license=('CDDL')
9 depends=('gcc-libs' 'ncurses')
10 makedepends=('git')
11 source=()
12 md5sums=()
14 _gitroot="git://github.com/path64/debugger.git"
15 _gitname="debugger"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   if [ -e "$srcdir/$_gitname-build" ]; then
32         rm -rf "$srcdir/$_gitname-build"
33   fi  
35   mkdir -p "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   cmake -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$_gitname"
39   make
42 package() {
43   cd "$srcdir/$_gitname-build"
44   make DESTDIR="$pkgdir/" install
45