void-packages/srcpkgs/carapace/template

29 lines
776 B
Bash

# Template file for 'carapace'
pkgname=carapace
version=1.0.3
revision=1
build_style=go
go_import_path=github.com/carapace-sh/carapace-bin
go_package="${go_import_path}/cmd/carapace"
go_build_tags="release"
go_ldflags="-X main.version=${version}"
short_desc="Multi-shell multi-command argument completer"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://carapace.sh/"
changelog="https://carapace-sh.github.io/carapace-bin/release_notes.html"
distfiles="https://github.com/carapace-sh/carapace-bin/archive/refs/tags/v${version}.tar.gz"
checksum=e1c63fd3d24b0bc5176b9c17a245763761e082185b30b4227f4f25dd10e70871
pre_build() {
CGO_ENABLED=0 GOARCH= go generate ./cmd/...
}
do_check() {
go test ./cmd/carapace/...
}
post_install() {
vlicense LICENSE
}