# Maintainer: Thomas Kruse # Contributor: Roman Lisagor pkgname=cni-plugins pkgver=0.7.5 pkgrel=1 pkgdesc="Some standard networking plugins, maintained by the CNI team" arch=('i686' 'x86_64' 'aarch64') url="https://github.com/containernetworking/plugins" license=('Apache') makedepends=('go') optdepends=('cni') depends=('glibc') source=("https://github.com/containernetworking/plugins/archive/v${pkgver}.tar.gz") sha512sums=('7ab43f88b4763907f56ff26d684385e5a3f6314ffb4bcbe356ec33a014fc15207392bd26e2d3041e117c604a386d21841a37d093b04e003303554b03721b32c6') build() { cd "${srcdir}/plugins-${pkgver}" ./build.sh } package() { cd "${srcdir}/plugins-${pkgver}" mkdir -p "${pkgdir}/opt/cni/" cp -dr --no-preserve=ownership bin "${pkgdir}/opt/cni/" mkdir -p ${pkgdir}/usr/share/licenses/${pkgname} install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }