void-packages/srcpkgs/carapace/template
2024-01-17 14:22:01 -05:00

28 lines
765 B
Bash

# Template file for 'carapace'
pkgname=carapace
version=0.29.1
revision=1
build_style=go
go_import_path=github.com/rsteube/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://rsteube.github.io/carapace-bin/release_notes.html"
distfiles="https://github.com/rsteube/carapace-bin/archive/refs/tags/v${version}.tar.gz"
checksum=1197b0ef630533488cf5cd986e522e3dc8a3d410f6197371ae8614a14b355fbf
pre_build() {
CGO_ENABLED=0 GOARCH= go generate ./cmd/...
}
do_check() {
go test ./cmd/carapace/...
}
post_install() {
vlicense LICENSE
}