diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2018-11-21 07:24:23 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-11-21 07:28:26 +0000 |
commit | 748f622b1270576f46f4ce1415c11acab9b3c992 (patch) | |
tree | fd5109db62832c86d37836c2bbc6fca88c2b4d9c /testing | |
parent | 18eb1df24b1f50ec71b039614284e6b612863d9a (diff) | |
download | aports-748f622b1270576f46f4ce1415c11acab9b3c992.tar.bz2 aports-748f622b1270576f46f4ce1415c11acab9b3c992.tar.xz |
testing/cni-plugins: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/cni-plugins/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/cni-plugins/APKBUILD b/testing/cni-plugins/APKBUILD new file mode 100644 index 0000000000..4c6a1f1310 --- /dev/null +++ b/testing/cni-plugins/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=cni-plugins +pkgver=0.7.4 +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" +builddir="$srcdir/plugins-$pkgver" + +build() { + cd "$builddir" + bash ./build.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="2ffe18353b525d90679eca4950e96afcaadd7c387956ef5baaf4ce97c0550315fda63403161ab8f23df086955dc2a47da612fb8d0cdd30ccfe12649393e2242c cni-plugins-0.7.4.tar.gz" |