26 lines
832 B
Bash
26 lines
832 B
Bash
# Template file for 'hcloud'
|
|
pkgname=hcloud
|
|
version=1.28.1
|
|
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}"
|
|
short_desc="Command-line interface for Hetzner Cloud"
|
|
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=fef9763ffe17668c8f434f27d99050b425039fb0d93d8d3a31ea55f99cfbad11
|
|
|
|
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
|
|
}
|