# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=netavark pkgver=1.7.0 pkgrel=2 pkgdesc="Container network stack" url="https://github.com/containers/netavark" license="Apache-2.0" # riscv64: fails to build due to nix crate arch="all !s390x" makedepends="cargo mandown protoc" subpackages="$pkgname-doc" source="https://github.com/containers/netavark/archive/v$pkgver/netavark-$pkgver.tar.gz" options="net" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo build --release --frozen --bin netavark mandown docs/netavark.1.md > docs/netavark.1 } check() { cargo test --frozen } package() { install -Dm755 target/release/netavark \ -t "$pkgdir"/usr/libexec/podman/ install -Dm644 docs/netavark.1 \ -t "$pkgdir"/usr/share/man/man1/ } sha512sums=" 52658b32cc03f157b4292e40918559700fcdd1cba633e34b396aeb0ed701ed308d1de45eba7f04865e89145367df772fdde91208f2475553e8db209426291844 netavark-1.7.0.tar.gz "