aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-nwdiag/APKBUILD
blob: 9501f783c408f2479842b05b064294836d64ab33 (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=0.9.4
pkgrel=0
pkgdesc="nwdiag generate network-diagram image"
url="https://pypi.python.org/pypi/nwdiag"
arch="noarch"
license="ASL 2.0"
depends="python py-imaging 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="199b22f66ec3012c3999177d376a3842  nwdiag-0.9.4.tar.gz"
sha256sums="12b27a7462060949c81cf801338bc26af9c0ef47e9d2ce5a13502471c33d742c  nwdiag-0.9.4.tar.gz"
sha512sums="e4b2f883cecbca404399a84b2c4e744da9f7c03cc0f7742243b529fd35442a1d55b4d1f0b79a7319229e9fd993c187af84acdea8ad8fd01ee60f806c34ec5141  nwdiag-0.9.4.tar.gz"