gentoo-ebuilds/sys-cluster/k9scli/k9scli-0.50.12.ebuild
Arthur Zamarin 04c6a29793
sys-cluster/k9scli: Stabilize 0.50.12 amd64, #966295
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-11-21 23:10:30 +02:00

38 lines
928 B
Bash

# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
# update this on every bump
GIT_COMMIT=13cb55bb
DESCRIPTION="terminal based UI to manage kubernetes clusters"
HOMEPAGE="https://k9scli.io"
SRC_URI="https://github.com/derailed/k9s/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/k9s/releases/download/v${PV}/k9s-${PV}-deps.tar.xz"
S=${WORKDIR}/k9s-${PV}
LICENSE="Apache-2.0"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0 Unlicense"
SLOT="0"
KEYWORDS="amd64 ~arm64"
BDEPEND=">=dev-lang/go-1.24.1"
src_prepare() {
default
# I will look into opening an upstream PR to do this.
sed -i -e 's/-w -s -X/-X/' Makefile || die
}
src_compile() {
emake GIT_REV=${GIT_COMMIT} VERSION=v${PV} build
}
src_install() {
dobin execs/k9s
dodoc -r change_logs plugins skins README.md
}