void-packages/srcpkgs/k9s/template

29 lines
765 B
Bash

# Template file for 'k9s'
pkgname=k9s
version=0.32.4
revision=2
build_style=go
go_import_path="github.com/derailed/k9s"
go_ldflags="-X ${go_import_path}/cmd.version=${version}"
short_desc="Terminal UI to interact with Kubernetes clusters"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://k9scli.io/"
distfiles="https://github.com/derailed/k9s/archive/v${version}.tar.gz"
checksum=597fa2c547437070a8993d1fb6fce91d696bd3731d37230feace3a2d3bfdb198
# fix: collect2: fatal error: cannot find 'ld'
export LDFLAGS="-fuse-ld=bfd"
post_build() {
for shell in bash zsh fish; do
go run main.go completion $shell >completion.$shell
done
}
post_install() {
for shell in bash zsh fish; do
vcompletion completion.$shell $shell
done
}