aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cni-plugins/APKBUILD
blob: 2680cef85a76c3a234825ea77b1320bfb9f6d8e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cni-plugins
pkgver=0.8.2
pkgrel=0
pkgdesc="Some standard networking plugins, maintained by the CNI team"
options="!check"
url="https://github.com/containernetworking/cni"
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"

build() {
	bash ./build_linux.sh
}

package() {
	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="383540232593c7ef8c28f83e660a58ae6dd2592c6d97a43c8fc1f046a3fa448911d4066ec0a6a7d7e770a1a2dceee7c31d742100b0871e07d691fe6bdffd42f9  cni-plugins-0.8.2.tar.gz"