mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
55 lines
1.4 KiB
Text
55 lines
1.4 KiB
Text
# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
|
|
pkgname=py3-pyroute2
|
|
_pkgname=pyroute2
|
|
pkgver=0.7.3
|
|
pkgrel=1
|
|
pkgdesc="Python Netlink library: full installation"
|
|
url="https://github.com/svinota/pyroute2"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later OR Apache-2.0"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
options="!check" # currently not working, yet
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
|
"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="
|
|
py3-pyroute2-minimal
|
|
py3-pyroute2.core
|
|
py3-pyroute2.ethtool
|
|
py3-pyroute2.ipdb
|
|
py3-pyroute2.ipset
|
|
py3-pyroute2.ndb
|
|
py3-pyroute2.nftables
|
|
py3-pyroute2.nslink
|
|
py3-pyroute2.protocols
|
|
"
|
|
provides="
|
|
py3-pyroute2-minimal=$pkgver-r$pkgrel
|
|
py3-pyroute2.core=$pkgver-r$pkgrel
|
|
py3-pyroute2.ethtool=$pkgver-r$pkgrel
|
|
py3-pyroute2.ipdb=$pkgver-r$pkgrel
|
|
py3-pyroute2.ipset=$pkgver-r$pkgrel
|
|
py3-pyroute2.ndb=$pkgver-r$pkgrel
|
|
py3-pyroute2.nftables=$pkgver-r$pkgrel
|
|
py3-pyroute2.nslink=$pkgver-r$pkgrel
|
|
py3-pyroute2.protocols=$pkgver-r$pkgrel
|
|
"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/pyroute2*.whl
|
|
|
|
# do not ship cli scripts for now
|
|
rm -rf "${pkgdir:?}/usr/bin"
|
|
}
|
|
|
|
sha512sums="
|
|
de2246da567255a4167ccba072a7f288bf12fd58ecdcd4da770984b0fff8fb76e416a752d54d1d8aaf520e4b1e0c38b443463b9f6208223602e7792e4a5122f3 pyroute2-0.7.3.tar.gz
|
|
"
|