testing/py3-pyroute2.ndb: new aport

This commit is contained in:
Thomas Liske 2021-09-13 19:51:02 +02:00 committed by Leo
parent 45da8d67e6
commit 185946c3a5

View File

@ -0,0 +1,29 @@
# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=py3-pyroute2.ndb
_pkgname=pyroute2.ndb
pkgver=0.6.4
pkgrel=0
pkgdesc="Python Netlink library: NDB module"
url="https://github.com/svinota/pyroute2"
arch="noarch"
license="GPL-2.0-or-later OR Apache-2.0"
makedepends="py3-setuptools"
depends="py3-pyroute2.core>=$pkgver py3-pyroute2.nslink>=$pkgver"
options="!check" # not supported for pr2modules namespace
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
# do not ship cli scripts for now
rm -rf "${pkgdir}/usr/bin"
}
sha512sums="
0d8e6e2f58ab4adcea0143c0fb20ded6df3320b671a2714da06c2f2ec2ef58c434fe388c0dad5ab63d71e38c67db6df85f92f1177c8e400568d92ff937265252 pyroute2.ndb-0.6.4.tar.gz
"