summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e02919346ab6eb9ad7cffc4471aa0a58928017b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Stelios Tsampas <loathingkernel @at gmail .dot com>

pkgname=pycflow2dot-git
pkgver=0.2.1.r1.g4a043ea
pkgrel=1
pkgdesc="Layout C call graphs from cflow using GraphViz dot"
arch=('any')
url="https://github.com/johnyf/pycflow2dot"
license=('BSD')
depends=('cflow' 'graphviz' 'python-pydot' 'python-networkx' 'python-decorator')
makedepends=('python-setuptools' 'git')
provides=("${pkgname/%-git/}")
conflicts=("${pkgname/%-git/}")
options=(!emptydirs)
source=("${pkgname/%-git/}::git+https://github.com/johnyf/pycflow2dot.git"
        'pycflow2dot-0.2.1-fix-install-requires.patch')
md5sums=('SKIP'
         '69d5c78fb719661f900741f82bfffa64')

pkgver() {
  cd "${pkgname/%-git/}"
  git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${pkgname/%-git/}"
	patch -i "${srcdir}/pycflow2dot-0.2.1-fix-install-requires.patch"
}

package() {
  cd "${pkgname/%-git/}"
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}