aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cni-plugins/APKBUILD
blob: c8e3b05d29382aa5248fa12490fd9f2aaa212163 (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
33
34
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cni-plugins
pkgver=0.8.0
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
ethtool-x86-go.patch"
builddir="$srcdir/plugins-$pkgver"

build() {
	cd "$builddir"
	bash ./build_linux.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="de685a66e0e875e8a2209b76c5d1f5fd0e426804e3db6084cf2e89695a8b1876eae47ff1fcfdf065a3b027918fe7c4775d2321358402dbd1206928538edb52b4  cni-plugins-0.8.0.tar.gz
f247f36d1c0ef6d5022f217dd6a6cc09c92211fe060077d8dc7df4a391b7db13a73cd4edb039c9539f735d6d9c4cde93ee8592d566efa4a3ed216bdbabfd96a1  ethtool-x86-go.patch"