aboutsummaryrefslogtreecommitdiffstats
path: root/community/cni-plugins/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/cni-plugins/APKBUILD')
-rw-r--r--community/cni-plugins/APKBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/community/cni-plugins/APKBUILD b/community/cni-plugins/APKBUILD
new file mode 100644
index 0000000000..b8738d6a0e
--- /dev/null
+++ b/community/cni-plugins/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=cni-plugins
+pkgver=0.8.6
+pkgrel=2
+pkgdesc="Some standard networking plugins, maintained by the CNI team"
+options="!check"
+url="https://github.com/containernetworking/cni"
+arch="all !mips !mips64" # missing go
+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"
+
+build() {
+ bash ./build_linux.sh
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/libexec/cni"
+ cp -ar bin/* "$pkgdir/usr/libexec/cni/"
+ mkdir -p $pkgdir/usr/share/licenses/$pkgname
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+sha512sums="8815de8b375c737c3a1951b0a7ef5786209fdcf723aa1bc7c2dab7e1bbdee4933a7237f41bdee4208828b457bc79ec69ff68db060c52bab13863f42b042480c8 cni-plugins-0.8.6.tar.gz"