updated on Sun Jan 22 08:00:21 UTC 2012
[aur-mirror.git] / strace-plus / PKGBUILD
blob168a011cf7b67325716a0e2ffe47492d93c7c2d7
1 # Maintainer: Andrew Cook <ariscop@gmail.com>
3 pkgname=strace-plus
4 pkgver=20120121
5 pkgrel=1
6 pkgdesc="Strace extended to include stack traces"
7 arch=('i686' 'x86_64')
8 license=('LGPL')
9 url="http://code.google.com/p/strace-plus/"
10 depends=()
11 makedepends=('git')
12 optdepends=('python2')
13 source=()
14 md5sums=()
16 _gitroot="https://code.google.com/p/strace-plus/"
17 _gitname="strace-plus"
19 build() {
20     msg "Connecting to GIT server..."
22     if [ -d ${srcdir}/$_gitname ] ; then
23         cd $_gitname && git pull origin
24     else
25         git clone $_gitroot
26     fi
27     
28     msg "GIT checkout done or server timeout"
29     msg "Starting build..."
30         
31     cd ${srcdir}/${_gitname}
32     ./configure --prefix=/usr
33     make || return 1
34     make DESTDIR=${pkgdir} install || return 1
36     #resolve conflicts with normal strace
37     mv ${pkgdir}/usr/share/man/man1/strace.1 \
38         ${pkgdir}/usr/share/man/man1/strace+.1
40     mv ${pkgdir}/usr/bin/strace-graph \
41         ${pkgdir}/usr/bin/strace+-graph