updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kcov / PKGBUILD
blobeb3f0a936718f9a8b4430b3af97edf1bd38559ae
1 # Maintainer: Thomas Burdick <thomas.burdick@gmail.com>
2 pkgname=kcov
3 pkgver=20101208
4 pkgrel=1
5 pkgdesc="C code coverage tool which uses debug symbols"
6 arch=('i686' 'x86_64')
7 url="http://simonkagstrom.github.com/kcov/index.html"
8 license=('GPLv2')
9 depends=('libdwarf')
10 makedepends=('cmake')
11 conflicts=()
12 provides=()
14 _gitroot="http://github.com/SimonKagstrom"
15 _gitname="kcov"
17 build() {
18     msg "Connecting to github.com GIT server...."
20     if [ -d ${_gitname} ] ; then
21         cd $_gitname && git pull origin
22         msg "The local files are updated."
23     else
24         git clone ${_gitroot}/${_gitname}.git
25     fi
27     msg "GIT checkout done or server timeout"
28     msg "Starting make..."
31     cd $srcdir/kcov
32     cmake -DCMAKE_INSTALL_PREFIX=/usr .
33     make || return 1
34     make DESTDIR=$pkgdir/ install || return 1