diff options
-rw-r--r-- | testing/py-nwdiag/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-nwdiag/APKBUILD b/testing/py-nwdiag/APKBUILD new file mode 100644 index 0000000000..9501f783c4 --- /dev/null +++ b/testing/py-nwdiag/APKBUILD @@ -0,0 +1,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" |