aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cni-plugins/APKBUILD
blob: 40b8ed1129ac9a8fa67b6332ca96beb26c1330d2 (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
28
29
30
31
32
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cni-plugins
pkgver=0.7.5
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="7ab43f88b4763907f56ff26d684385e5a3f6314ffb4bcbe356ec33a014fc15207392bd26e2d3041e117c604a386d21841a37d093b04e003303554b03721b32c6  cni-plugins-0.7.5.tar.gz"