# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=cni-plugins pkgver=1.3.0 pkgrel=2 pkgdesc="Some standard networking plugins, maintained by the CNI team" options="!check" url="https://www.cni.dev/" arch="all" license="Apache-2.0" makedepends="go bash linux-headers" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/containernetworking/plugins/archive/v$pkgver.tar.gz" builddir="$srcdir/plugins-$pkgver" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { bash ./build_linux.sh -ldflags "-X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=v$pkgver" } package() { install -Dm755 -t "$pkgdir"/usr/libexec/cni bin/* install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums=" 87e186b3cd64f66280f5b2293dcdd1fc22cb8f51a248124fb622adc48a893348419ba4c29c4769dede4d9e60f2e9fea5d4198f10badb4ecd20a1551e0b344e10 cni-plugins-1.3.0.tar.gz "