28 lines
700 B
Bash
28 lines
700 B
Bash
# Template file for 'carapace'
|
|
pkgname=carapace
|
|
version=0.28.0
|
|
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://github.com/rsteube/carapace-bin"
|
|
distfiles="https://github.com/rsteube/carapace-bin/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=4b46d76ca07f8846b14049bd564a84540d39d41ec0d522d546d11a02d47bfe20
|
|
|
|
pre_build() {
|
|
GOARCH= go generate ./cmd/...
|
|
}
|
|
|
|
do_check() {
|
|
go test ./cmd/carapace/...
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|