Files
guru/app-shells/carapace/carapace-1.6.4.ebuild
Jonas Frei 805e2f2e1a app-shells/carapace: add 1.6.4
Signed-off-by: Jonas Frei <freijon@pm.me>
2026-03-22 14:31:25 +01:00

44 lines
864 B
Bash

# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Multi-shell multi-command argument completer"
HOMEPAGE="https://carapace.sh/"
SRC_URI="https://github.com/${PN}-sh/${PN}-bin/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
DEPS_URI="https://github.com/gentoo-golang-dist/${PN}-bin/releases/download/v${PV}/${PN}-bin-${PV}-vendor.tar.xz -> ${P}.tar.xz"
SRC_URI+=" ${DEPS_URI}"
S="${WORKDIR}/${PN}-bin-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
>=dev-lang/go-1.23.1
"
DOCS=(
"README.md"
)
HTML_DOCS=(
"docs/book/"
)
src_compile() {
pushd "cmd/${PN}"
ego generate ./...
ego build -ldflags="-s -w" -tags release
}
src_install() {
dobin "cmd/${PN}/${PN}"
mv "docs/src" "docs/book" || die
rm -r "docs/book/release_notes" || die
einstalldocs
}