void-packages/srcpkgs/goreleaser/template

26 lines
774 B
Bash

# Template file for 'goreleaser'
pkgname=goreleaser
version=1.21.2
revision=1
build_style=go
build_helper="qemu"
go_import_path=github.com/goreleaser/goreleaser
go_ldflags="-X main.version=${version}"
short_desc="Deliver Go binaries as fast and easily as possible"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="MIT"
homepage="https://goreleaser.com/"
distfiles="https://github.com/goreleaser/goreleaser/archive/refs/tags/v$version.tar.gz"
checksum=0721e1d3c2f4d68076b62c0484d0d17964e62f71794a96653a3f0dfaff2509d8
post_install() {
vlicense LICENSE.md
goreleaser=$(find $GOPATH/bin -name goreleaser)
for shell in bash fish zsh; do
vtargetrun ${goreleaser} completion ${shell} > completion.${shell}
vcompletion completion.${shell} ${shell}
done
}