Files
gentoo-zh/net-analyzer/cfspeedtest-bin/cfspeedtest-bin-2.3.1.ebuild
T
2026-12-02 19:17:17 +11:00

29 lines
686 B
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Unofficial CLI for speed.cloudflare.com "
HOMEPAGE="https://github.com/code-inflation/cfspeedtest"
URL_PREFIX="https://github.com/code-inflation/cfspeedtest/releases/download"
SRC_URI="
amd64? ( ${URL_PREFIX}/v${PV}/cfspeedtest-x86_64-unknown-linux-gnu.tar.gz -> ${P}.tar.gz )
arm64? ( ${URL_PREFIX}/v${PV}/cfspeedtest-aarch64-unknown-linux-gnu.tar.gz -> ${P}-arm64.tar.gz )
"
S="${WORKDIR}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="strip"
RDEPEND="sys-libs/glibc"
QA_PREBUILT="/usr/bin/cfspeedtest"
src_install() {
dobin cfspeedtest
}