diff --git a/srcpkgs/crush/template b/srcpkgs/crush/template new file mode 100644 index 00000000000000..49bbed5ed84cc5 --- /dev/null +++ b/srcpkgs/crush/template @@ -0,0 +1,25 @@ +# Template file for 'crush' +pkgname=crush +version=0.10.4 +revision=1 +build_style=go +go_import_path=github.com/charmbracelet/crush +go_ldflags="-X github.com/charmbracelet/crush/internal/version.Version=${version}" +short_desc="Glamourous AI coding agent for your favourite terminal" +maintainer="Gustavo VinĂ­cios de Souza " +license="FSL-1.1-MIT" +homepage="https://charm.sh/crush" +distfiles="https://github.com/charmbracelet/crush/archive/refs/tags/v${version}.tar.gz" +checksum=24074bbf98871966061ca364458d6dfa0c319dcd7910437cc3dcc9911e90113b + +post_install() { + for shell in bash zsh fish; do + CGO_ENABLED=0 GOARCH= go run . completion ${shell} > crush.${shell} + vcompletion crush.${shell} ${shell} + done + + CGO_ENABLED=0 GOARCH= go run . man > crush.1 + vman crush.1 + + vlicense LICENSE.md +}