mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
app-admin/kubectx: add 0.11.0
Closes: https://bugs.gentoo.org/925858 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST kubectx-0.11.0-vendor.tar.xz 2627448 BLAKE2B 86c27322819fc5af0a71a4fbb4e54b728a3ab8e283caa8245432ca9f059d95e06cf195974207d3a16ffbad834505ebcbf716ae74e7b0ba6d04131455df6f038f SHA512 35eb600ebdfbac6e8400e774728765328ef4abb7e77c71d92f6ef306007d609ce447e4886dca978d7a02f1a963e90303cb2c183b8410a547bf249254194a9b46
|
||||
DIST kubectx-0.11.0.tar.gz 527548 BLAKE2B f5305d5cd858419bfa71f5b947547638ecaa7879de0642ccf7a683f3893988c95c82cdb07d041c851682a97065a6ebae552601f607e2519bdb86a36308f29c75 SHA512 4bdb2baecbcee58b6aa4b8b723ff2d9e1cd11515b9289f800b1a5572c429947347e3fae7d804e5de4843f95ba99b6b6fccb3e1f91b32edd032cb4804e5a82639
|
||||
DIST kubectx-0.9.5-deps.tar.xz 10465832 BLAKE2B 576efe8a640d10f00e5b92ad0118946af1a7fe06a1ec208601f490f8503a7343dadc934d949dd727e2559a4968b6e150eff442a2d1f7d6812387c2cc0f109cb8 SHA512 f0f6241101087526b9d02d9588f161d65e5a3e6c3d4fcd1fb5563dcb7f9d5dcd079987da517867749cf2e1efef5405c3dcfb39280c53e968be9cdd68dbeb0bcc
|
||||
DIST kubectx-0.9.5.tar.gz 523259 BLAKE2B e23ed5ad53abd645577682f5c263db1d62d9b77b688181fe7f2911312f182e18d6a56d063302253d2853a39c5fc832467ea0dd1c18b6ad34d5c99e9535530b6c SHA512 a7eacc4676d70caba7081aa09f36f8513c3578368a6f0984fd88d3fe674df8cadb3c5ccf109e9ea231bcfd189af6416b94b8e2cb4a4073a9b12c37e88ed73008
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module shell-completion
|
||||
|
||||
DESCRIPTION="Fast way to switch between clusters and namespaces in kubectl"
|
||||
HOMEPAGE="https://github.com/ahmetb/kubectx"
|
||||
SRC_URI="https://github.com/ahmetb/kubectx/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD ISC MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
BDEPEND=">=dev-lang/go-1.25.0"
|
||||
|
||||
src_compile() {
|
||||
ego build -trimpath -ldflags "-w" ./cmd/{kubectx,kubens}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin kubectx kubens
|
||||
|
||||
newbashcomp completion/kubectx.bash kubectx
|
||||
newbashcomp completion/kubens.bash kubens
|
||||
bashcomp_alias kubectx kctx
|
||||
bashcomp_alias kubens kns
|
||||
newzshcomp completion/_kubectx.zsh _kubectx
|
||||
newzshcomp completion/_kubens.zsh _kubens
|
||||
dofishcomp completion/{kubectx,kubens}.fish
|
||||
}
|
||||
Reference in New Issue
Block a user