guru/app-shells/carapace/carapace-1.0.1.ebuild
Lucio Sauer f2be215fb9
*/*: fix variable order
Manually went through some entries for `pkgcheck scan -c
VariableOrderCheck`.

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
2024-04-26 16:46:35 +02:00

38 lines
758 B
Bash

# Copyright 2023 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
https://gitlab.com/freijon_gentoo/${CATEGORY}/${PN}/-/raw/main/${P}-deps.tar.xz"
S="${WORKDIR}/${PN}-bin-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
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
}