void-packages/srcpkgs/kops/template

24 lines
787 B
Bash

# Template file for 'kops'
pkgname=kops
version=1.26.3
revision=3
archs="x86_64*"
build_style=go
go_import_path="k8s.io/kops"
go_package="./cmd/kops"
go_ldflags="-X k8s.io/kops.Version=${version} -X k8s.io/kops.GitVersion=${version}"
depends="kubectl"
short_desc="Production Grade K8s Installation, Upgrades, and Management"
maintainer="Mate Gabri <iam@theguy.io>"
license="Apache-2.0"
homepage="https://github.com/kubernetes/kops"
distfiles="https://github.com/kubernetes/kops/archive/refs/tags/v${version}.tar.gz"
checksum=10959b7b59f61a6078471eb2da30ad8c839fa96f648c2c9606a3deafce36eb91
post_install() {
${DESTDIR}/usr/bin/kops completion bash >kops-completion.bash
${DESTDIR}/usr/bin/kops completion zsh >_kops
vcompletion kops-completion.bash bash kops
vcompletion _kops zsh
}