24 lines
676 B
Bash
24 lines
676 B
Bash
# Template file for 'cni-plugins'
|
|
pkgname=cni-plugins
|
|
version=1.3.0
|
|
revision=1
|
|
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=f9871b9f6ccb51d2b264532e96521e44f926928f91434b56ce135c95becf2901
|
|
|
|
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
|
|
}
|