From 4803aa5419db3bb59c8103eb5b07bbaeb5dc81dd Mon Sep 17 00:00:00 2001 From: icp Date: Wed, 7 Sep 2022 21:08:27 +0530 Subject: [PATCH] New package: carapace-0.23.0 --- srcpkgs/carapace/template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/carapace/template diff --git a/srcpkgs/carapace/template b/srcpkgs/carapace/template new file mode 100644 index 000000000000..27315bc9b084 --- /dev/null +++ b/srcpkgs/carapace/template @@ -0,0 +1,27 @@ +# Template file for 'carapace' +pkgname=carapace +version=0.23.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 " +license="MIT" +homepage="https://github.com/rsteube/carapace-bin" +distfiles="https://github.com/rsteube/carapace-bin/archive/refs/tags/v${version}.tar.gz" +checksum=bfe386a856c9c3b2a043b26b1e57c69ccc3746d5a848afc2531653f543b22e71 + +pre_build() { + GOARCH= go generate ./cmd/... +} + +do_check() { + go test ./cmd/carapace/... +} + +post_install() { + vlicense LICENSE +}