Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions srcpkgs/crush/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Template file for 'crush'
pkgname=crush
version=0.66.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 <zenobit@disroot.org>"
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=87246691bfdc927003847bfe7f18ac70fe02110a40cb4e0c88ca14ec0aa61c3e
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
}