aboutsummaryrefslogtreecommitdiff
blob: b2b18392712486740976e3181bca7c97259761b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2024 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.7/"
S="${WORKDIR}"
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} )
"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"

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
}