void-packages/srcpkgs/cni-plugins/template

24 lines
676 B
Bash

# Template file for 'cni-plugins'
pkgname=cni-plugins
version=1.2.0
revision=3
build_style=go
go_import_path="github.com/containernetworking/plugins"
short_desc="Container Network Interface (plugins)"
maintainer="Cameron Nemo <cam@nohom.org>"
license="Apache-2.0"
homepage="https://github.com/containernetworking/plugins"
distfiles="https://github.com/containernetworking/plugins/archive/v${version}.tar.gz"
checksum=f3496ddda9c7770a0b695b67ae7ee80a4ee331ac2745af4830054b81627f79b7
do_build() {
./build_linux.sh \
-ldflags \
"-X ${go_import_path}/pkg/utils/buildversion.BuildVersion=${version}"
}
do_install() {
vmkdir usr/libexec/cni
vcopy "bin/*" usr/libexec/cni
}