Files
guru/app-admin/talosctl-bin/talosctl-bin-1.12.5.ebuild
David Reed 37a96b3fd7 app-admin/talosctl-bin: add 1.12.5
Signed-off-by: David Reed <david-gentoo@reedfam.email>
2026-03-12 16:19:02 -07:00

38 lines
1006 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
DESCRIPTION="Pre-compiled talosctl is an tool for interacting with the Talos API"
HOMEPAGE="https://www.talos.dev/"
MY_PV="${PV/_rc/-rc.}"
SRC_URI="
amd64? ( https://github.com/siderolabs/talos/releases/download/v${MY_PV}/talosctl-linux-amd64 ->
talosctl-amd64-v${MY_PV} )
arm64? ( https://github.com/siderolabs/talos/releases/download/v${MY_PV}/talosctl-linux-arm64 ->
talosctl-arm64-v${MY_PV} )
arm? ( https://github.com/siderolabs/talos/releases/download/v${MY_PV}/talosctl-linux-armv7 ->
talosctl-armv7-v${MY_PV} )
"
S="${WORKDIR}"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm ~arm64"
QA_PREBUILT="usr/bin/talosctl"
src_install() {
if use arm; then
newbin "${DISTDIR}"/talosctl-armv7-v${MY_PV} talosctl
fi
if use arm64; then
newbin "${DISTDIR}"/talosctl-arm64-v${MY_PV} talosctl
fi
if use amd64; then
newbin "${DISTDIR}"/talosctl-amd64-v${MY_PV} talosctl
fi
}