updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / gprof2dot-hg / PKGBUILD
blobcad2a18e9d809e86d66d05f67799805fa56e4dbe
1 # Contributor: tocer <tocer.deng@gmail.com>
3 pkgname=gprof2dot-hg
4 pkgver=95
5 pkgrel=1
6 pkgdesc="A Python script to convert the output from many profilers into a dot graph."
7 url="http://code.google.com/p/jrfonseca/wiki/Gprof2Dot"
8 license=("LGPL")
9 arch=("any")
10 depends=(python2)
11 makedepends=("mercurial")
12 _hgroot="https://gprof2dot.jrfonseca.googlecode.com/hg/"
13 _hgrepo="gprof2dot"
14 md5sums=()
16 build() {
17   cd ${srcdir}
18   
19   if [ -d ${_hgrepo} ]; then
20     cd ${_hgrepo}
21     hg pull -u
22   else
23     hg clone ${_hgroot}/${_hgrepo}
24     cd ${_hgrepo}
25   fi
26   
27   msg "Starting build process."
28   sed -i '1s/python$/python2/' gprof2dot.py
29   install -D -m 755 gprof2dot.py $pkgdir/usr/bin/gprof2dot