blob: e9d02f91b2288105103de91de57e9f0bd1edd24a (
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
35
36
37
38
39
|
# Contributor: Robert Günzler <r@gnzler.io>
pkgname=cni-plugin-flannel
pkgver=1.1.0
pkgrel=2
pkgdesc="networking plugin, designed to work with flannel network fabric"
options="!check"
url="https://github.com/flannel-io/cni-plugin/"
arch="all"
license="Apache-2.0"
makedepends="go linux-headers"
source="$pkgname-$pkgver.tar.gz::https://github.com/flannel-io/cni-plugin/archive/v$pkgver.tar.gz"
builddir="$srcdir/cni-plugin-$pkgver"
options="!check net"
export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"
build() {
mkdir -p dist
CGO_ENABLED=0 \
go build -o dist/flannel \
-tags "netgo osusergo no_stage static_build" \
-ldflags "
-X main.Version=$pkgver
-X main.Program=flannel
-X main.Commit=alpine
"
}
package() {
install -Dm755 -t "$pkgdir"/usr/libexec/cni dist/flannel
}
sha512sums="
e026bed01f8ac64b584d8c438ccc048df607b2e4832493335b2e266166acebf32f2b58c353bc2ecd3750d920e65a79afef7b28bf4a6405e2f461ab2c8cd953a7 cni-plugin-flannel-1.1.0.tar.gz
"
|