# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=cni-plugins pkgver=0.8.0 pkgrel=0 pkgdesc="Some standard networking plugins, maintained by the CNI team" url="https://github.com/containernetworking/cni" arch="all" license="Apache" makedepends="go bash linux-headers" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/containernetworking/plugins/archive/v${pkgver}.tar.gz ethtool-x86-go.patch" builddir="$srcdir/plugins-$pkgver" build() { cd "$builddir" bash ./build_linux.sh } check() { cd "$builddir" } package() { cd "$builddir" mkdir -p "${pkgdir}/usr/share/${pkgname}/" cp -ar bin "${pkgdir}/usr/share/${pkgname}/" mkdir -p ${pkgdir}/usr/share/licenses/${pkgname} install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } sha512sums="de685a66e0e875e8a2209b76c5d1f5fd0e426804e3db6084cf2e89695a8b1876eae47ff1fcfdf065a3b027918fe7c4775d2321358402dbd1206928538edb52b4 cni-plugins-0.8.0.tar.gz f247f36d1c0ef6d5022f217dd6a6cc09c92211fe060077d8dc7df4a391b7db13a73cd4edb039c9539f735d6d9c4cde93ee8592d566efa4a3ed216bdbabfd96a1 ethtool-x86-go.patch"