29 lines
765 B
Bash
29 lines
765 B
Bash
# Template file for 'carapace'
|
|
pkgname=carapace
|
|
version=0.30.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=ffccf041d14e7eb633750539f00c0cc81e3ca7d3da3b86db4f5798cde63a8b5f
|
|
|
|
pre_build() {
|
|
CGO_ENABLED=0 GOARCH= go generate ./cmd/...
|
|
}
|
|
|
|
do_check() {
|
|
go test ./cmd/carapace/...
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|