void-packages/srcpkgs/carapace/template
2023-08-23 16:06:48 -05:00

27 lines
700 B
Bash

# Template file for 'carapace'
pkgname=carapace
version=0.26.0
revision=2
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://github.com/rsteube/carapace-bin"
distfiles="https://github.com/rsteube/carapace-bin/archive/refs/tags/v${version}.tar.gz"
checksum=79ce389f1f7472f484ed0f7bd07befbbad33c5737f709bd75f8b868b301b751f
pre_build() {
GOARCH= go generate ./cmd/...
}
do_check() {
go test ./cmd/carapace/...
}
post_install() {
vlicense LICENSE
}