void-packages/srcpkgs/glab/template

25 lines
811 B
Bash

# Template file for 'glab'
pkgname=glab
version=1.45.0
revision=2
build_style=go
build_helper=qemu
go_ldflags="-X main.version=$version"
go_import_path=gitlab.com/gitlab-org/cli
go_package="${go_import_path}/cmd/glab"
short_desc="Command line tool bringing GitLab's features to your command line"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://gitlab.com/gitlab-org/cli"
changelog="https://gitlab.com/gitlab-org/cli/-/releases"
distfiles="https://gitlab.com/gitlab-org/cli/-/archive/v$version/cli-v$version.tar.gz"
checksum=3cb222f196bb995b87c938e2ac0d496a343515af1530eebff228e630fa243ca9
post_install() {
for shell in bash fish zsh; do
vtargetrun ${DESTDIR}/usr/bin/glab completion -s ${shell} > glab.${shell}
vcompletion glab.${shell} ${shell}
done
vlicense LICENSE
}