From 0915c968ab6fd59a0ec59ffb3c3c01316dd714c6 Mon Sep 17 00:00:00 2001 From: zenobit Date: Sat, 25 Jul 2026 13:31:53 +0200 Subject: [PATCH] New package: crush-0.90.0 --- srcpkgs/crush/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/crush/template diff --git a/srcpkgs/crush/template b/srcpkgs/crush/template new file mode 100644 index 00000000000000..42e0504894b553 --- /dev/null +++ b/srcpkgs/crush/template @@ -0,0 +1,32 @@ +# Template file for 'crush' +pkgname=crush +version=0.90.0 +revision=1 +build_style=go +go_import_path=github.com/charmbracelet/crush +short_desc="Glamourous AI coding agent for your favourite terminal" +maintainer="zenobit " +license="FSL-1.1-MIT" +homepage="https://github.com/charmbracelet/crush" +changelog="https://github.com/charmbracelet/crush/releases" +distfiles="https://github.com/charmbracelet/crush/archive/refs/tags/v${version}.tar.gz" +checksum=47a8b5ca440747b66f8aa8ea753ce1ef552e6917ad42237c4999bae928c0b17b +repository=nonfree +make_check=no # No tests provided + +do_build() { + go build -ldflags="-w -s -buildid='' -linkmode=external -X github.com/charmbracelet/crush/internal/version.Version=v${version}" . +} + +post_install() { + vbin crush + 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 +}