void-packages/srcpkgs/flannel/template
2017-07-12 07:45:10 +02:00

21 lines
564 B
Bash

# Template file for 'flannel'
pkgname=flannel
version=0.8.0
revision=1
build_style=go
short_desc="Etcd backed network fabric for containers"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
depends="etcd"
license="Apache-2.0"
go_import_path="github.com/coreos/flannel"
homepage="https://$go_import_path"
distfiles="$homepage/archive/v${version}.tar.gz"
checksum=8905f1706b649db8c9852ddd0d559ff8c1844886278455b8ff0c22b909b1e059
pre_build() {
CGO_CFLAGS="${CGO_CFLAGS/-O2/}" # Disable optimizations because of a cgo bug in Go 1.6
}
post_install() {
vsv flannel
}