app-misc/crush - 0.35.0 (gentoo-zh)

Search

Package Information

Description:
The glamourous AI coding agent for your favourite terminal 💘
Homepage:
https://github.com/charmbracelet/crush
License:
FSL-1.1-MIT

Ebuild Details

Version EAPI Keywords Slot
0.35.0 8 -* ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module shell-completion

DESCRIPTION="The glamourous AI coding agent for your favourite terminal 💘"
HOMEPAGE="https://github.com/charmbracelet/crush"
SRC_URI="
	https://github.com/charmbracelet/crush/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/gentoo-zh-drafts/crush/releases/download/v${PV}/${P}-vendor.tar.xz
"
S="${WORKDIR}"/${P}

# https://fsl.software/FSL-1.1-MIT.template.md
LICENSE="FSL-1.1-MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"

BDEPEND=">=dev-lang/go-1.25.5"

src_compile() {
	local ldflags="\
		-X github.com/charmbracelet/crush/internal/version.Version=${PV}"
	ego build -o ${PN} -trimpath -ldflags "${ldflags}"
}

src_install() {
	# generate shell completion scripts
	for sh in bash fish zsh; do
	        ./${PN} completion ${sh} > "completion.${sh}"
	done

	dobin ${PN}

	newbashcomp completion.bash "${PN}"
	newfishcomp completion.fish "${PN}".fish
	newzshcomp completion.zsh _"${PN}"
}

Dependencies

BDEPEND

>=dev-lang/go-1.25.5

Manifest for 0.35.0

Type File Size Source URLs
DIST crush-0.35.0-vendor.tar.xz 12963352 bytes https://github.com/gentoo-zh-drafts/crush/releases/download/v0.35.0/crush-0.35.0-vendor.tar.xz
DIST crush-0.35.0.tar.gz 3059642 bytes https://github.com/charmbracelet/crush/archive/refs/tags/v0.35.0.tar.gz