hcloud: update to 1.28.0, add completions

This commit is contained in:
Daniel Eyßer 2021-08-21 00:10:31 +02:00 committed by Érico Nogueira Rolim
parent 34b49b9910
commit 432caaf856

View file

@ -1,9 +1,10 @@
# Template file for 'hcloud'
pkgname=hcloud
version=1.26.1
version=1.28.0
revision=1
wrksrc="cli-${version}"
build_style=go
build_helper=qemu
go_import_path=github.com/hetznercloud/cli
go_package=github.com/hetznercloud/cli/cmd/hcloud
go_ldflags="-X github.com/hetznercloud/cli/internal/version.Version=${version}"
@ -12,9 +13,13 @@ maintainer="Gerardo Di Iorio <arete74@gmail.com>"
license="MIT"
homepage="https://github.com/hetznercloud/cli"
distfiles="https://github.com/hetznercloud/cli/archive/v${version}.tar.gz"
checksum=ba7fed423b2c437adfb4b98b2fdadaad6b6325f8e31cac2729982b7bf2523c81
checksum=1e12d771d44b3c25c2b6d96a56465cd3712ec557f5059bad59741108f48f8b3d
post_install() {
vlicense LICENSE
vdoc README.md
for shell in bash fish zsh; do
vtargetrun ${DESTDIR}/usr/bin/hcloud completion ${shell} > completions.${shell}
vcompletion completions.${shell} ${shell}
done
}