void-packages/srcpkgs/hcloud/template

26 lines
889 B
Bash

# Template file for 'hcloud'
pkgname=hcloud
version=1.40.0
revision=1
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}"
short_desc="Command-line interface for Hetzner Cloud"
maintainer="Gerardo Di Iorio <arete74@gmail.com>"
license="MIT"
homepage="https://github.com/hetznercloud/cli"
changelog="https://raw.githubusercontent.com/hetznercloud/cli/main/CHANGELOG.md"
distfiles="https://github.com/hetznercloud/cli/archive/v${version}.tar.gz"
checksum=74d65f21e1d123bf30a3a4ad4cfa517c241dd56af559b3f88433b97c2a8b26aa
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
}