# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=miniupnpc pkgver=2.2.5 pkgrel=0 pkgdesc="Library and tool to control NAT in UPnP-enabled routers" url="http://miniupnp.free.fr" arch="all" license="BSD-3-Clause" makedepends="bsd-compat-headers py3-setuptools python3-dev" subpackages="$pkgname-dev py3-$pkgname:_py3 $pkgname-doc" source="http://miniupnp.free.fr/files/miniupnpc-$pkgver.tar.gz" build() { make python3 setup.py build } check() { make check } package() { make DESTDIR="$pkgdir" PREFIX=/usr install python3 setup.py install --skip-build --root="$pkgdir" } _py3() { pkgdesc="Python bindings for miniupnpc" amove usr/lib/python3* } sha512sums=" 32d362c43cf5c9f6c1546d85c2dd780f9701f3137bc78471b3670c4c0862b7fc4f081e6cb6fd14e5c0d3ec0602714756959491688998335c8a7b324e6c53aa2f miniupnpc-2.2.5.tar.gz "