blob: 229bc7727ec1e027900d5b79d1086276cee51e43 (
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
35
36
37
38
39
40
41
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-nwdiag
_pkgname=nwdiag
pkgver=1.0.3
pkgrel=0
pkgdesc="A Python tool to generate network-diagram image"
url="https://pypi.python.org/pypi/nwdiag"
arch="noarch"
license="ASL 2.0"
depends="python py-pillow py-funcparserlib py-blockdiag"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="84080b3759dcd500a7573ee10a54795c nwdiag-1.0.3.tar.gz"
sha256sums="daff808b22f4581eb7e291c58b1280b4570b1d624bed12e642b33feb82cfea58 nwdiag-1.0.3.tar.gz"
sha512sums="63074f7fd8a084fd42521c00df1774886234609b441e23120575f5879ce22771023461fcd64c9125409edb00347dade57ebdd4131e898859c2a622df124b8fff nwdiag-1.0.3.tar.gz"
|