Files
guru/app-admin/talosctl-bin/talosctl-bin-1.10.1.ebuild
Skyler Mäntysaari ce084707a7 app-admin/talosctl-bin: add 1.10.1 & 1.9.5, remove 1.9.2
Signed-off-by: Skyler Mäntysaari <sm+git@skym.fi>
2025-05-17 19:06:50 +03:00

36 lines
958 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/v1.10/"
SRC_URI="
amd64? ( https://github.com/siderolabs/talos/releases/download/v${PV}/talosctl-linux-amd64 ->
talosctl-amd64-v${PV} )
arm64? ( https://github.com/siderolabs/talos/releases/download/v${PV}/talosctl-linux-arm64 ->
talosctl-arm64-v${PV} )
arm? ( https://github.com/siderolabs/talos/releases/download/v${PV}/talosctl-linux-armv7 ->
talosctl-armv7-v${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${PV} talosctl
fi
if use arm64; then
newbin "${DISTDIR}"/talosctl-arm64-v${PV} talosctl
fi
if use amd64; then
newbin "${DISTDIR}"/talosctl-amd64-v${PV} talosctl
fi
}