void-packages/srcpkgs/stern/template

29 lines
768 B
Bash

# Template file for 'stern'
pkgname=stern
version=1.22.0
revision=3
build_style=go
go_import_path="github.com/stern/stern"
short_desc="Multi pod and container log tailing for Kubernetes"
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
license="Apache-2.0"
homepage="https://github.com/stern/stern"
distfiles="https://github.com/stern/stern/archive/v${version}.tar.gz"
checksum=3726e3c6a0e8c2828bce7b67f9ee94ddbedcfbeeecf9e6ab42e23873e3f54161
# fix: collect2: fatal error: cannot find 'ld'
export LDFLAGS="-fuse-ld=bfd"
post_build() {
for shell in bash fish zsh; do
CGO_ENABLED=0 GOARCH="" go run main.go --completion "$shell" \
>"completion.$shell"
done
}
post_install() {
for shell in bash fish zsh; do
vcompletion "completion.$shell" "$shell"
done
}