dev-python/conda-libmamba-solver: bump version to 24.11.1
[gentoo-zh.git] / net-vpn / cloudflared-bin / cloudflared-bin-2024.12.2.ebuild
blob11d9a33ffd887e59cba71240f29f06fef98ce628
1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 DESCRIPTION="Cloudflare Tunnel client (formerly Argo Tunnel)"
7 HOMEPAGE="https://github.com/cloudflare/cloudflared"
8 SRC_URI+="
9 amd64? (
10 https://github.com/cloudflare/cloudflared/releases/download/${PV}/cloudflared-linux-amd64
11 -> cloudflared-${PV}-amd64
13 arm64? (
14 https://github.com/cloudflare/cloudflared/releases/download/${PV}/cloudflared-linux-arm64
15 -> cloudflared-${PV}-arm64
17 doc? (
18 https://raw.githubusercontent.com/cloudflare/cloudflared/refs/tags/${PV}/RELEASE_NOTES
19 -> RELEASE_NOTES-${PV}
21 S=${WORKDIR}
23 LICENSE="Apache-2.0"
24 SLOT="0"
25 KEYWORDS="-* amd64 ~arm64"
26 IUSE="doc"
28 RESTRICT="strip"
30 src_prepare() {
31 default
33 case ${ARCH} in
34 amd64)
35 cp "${DISTDIR}/cloudflared-${PV}-amd64" cloudflared || die
37 arm64)
38 cp "${DISTDIR}/cloudflared-${PV}-arm64" cloudflared || die
41 die "Unsupported arch ${ARCH}"
43 esac
45 use doc && (cp "${DISTDIR}/RELEASE_NOTES-${PV}" release_notes || die)
48 src_install() {
49 exeinto /usr/bin
50 doexe "${S}/cloudflared"
51 use doc && dodoc "${S}/release_notes"