From 3acee9dee0a6fc4828da640591adf37b3688a772 Mon Sep 17 00:00:00 2001 From: icp Date: Wed, 7 Sep 2022 21:08:27 +0530 Subject: [PATCH] New package: carapace-0.18.0 --- srcpkgs/carapace/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/carapace/template diff --git a/srcpkgs/carapace/template b/srcpkgs/carapace/template new file mode 100644 index 000000000000..54e1ba3a6439 --- /dev/null +++ b/srcpkgs/carapace/template @@ -0,0 +1,28 @@ +# Template file for 'carapace' +pkgname=carapace +version=0.18.0 +revision=1 +wrksrc="carapace-bin-${version}" +build_style=go +go_import_path="github.com/rsteube/carapace-bin" +go_package="./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=e7f4590a65dc8e099032f1d35df0b0c75fa39f08ea1e533172a04f469f016405 + +pre_build() { + GOARCH= go generate ./cmd/... +} + +do_check() { + go test -v ./cmd/carapace/... +} + +post_install() { + vlicense LICENSE +}