You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
777 B
35 lines
777 B
# Copyright 2021-2023 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=f4543e9b
|
|
|
|
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://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64"
|
|
|
|
S="${WORKDIR}/k9s-${PV}"
|
|
|
|
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
|
|
}
|