net-analyzer/speedtest-go - 1.7.10 (lmkra)

Search

Package Information

Description:
Full-featured Command Line Interface and pure Go API to speedtest.net
Homepage:
https://github.com/showwin/speedtest-go

Ebuild Details

Version EAPI Keywords Slot
1.7.10 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2023 lmkra
# Distributed under the terms of the GNU General Public License v2

EAPI=8
EGO_PN="github.com/showwin/speedtest-go"

inherit go-module

DESCRIPTION="Full-featured Command Line Interface and pure Go API to speedtest.net"
HOMEPAGE="https://github.com/showwin/speedtest-go"

if [[ ${PV} == *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/showwin/speedtest-go.git"
else
	SRC_URI="https://github.com/showwin/speedtest-go/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
		https://lmkra.eu/gentoo/speedtest-go-${PV}-deps.tar.xz"
	S="${WORKDIR}/speedtest-go-${PV}"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="MIT"
SLOT="0"

DEPEND="dev-lang/go"

src_unpack() {
	if [[ ${PV} == *9999 ]]; then
		git-r3_src_unpack
		go-module_live_vendor
	else
		go-module_src_unpack
	fi
}

src_compile() {
	ego build
}

src_install() {
	dobin speedtest-go
	dodoc -r example
}

Dependencies

DEPEND

dev-lang/go

Manifest for 1.7.10

Type File Size Source URLs
DIST speedtest-go-1.7.10-deps.tar.xz 681984 bytes https://lmkra.eu/gentoo/speedtest-go-1.7.10-deps.tar.xz
DIST speedtest-go-1.7.10.tar.gz 41384 bytes https://github.com/showwin/speedtest-go/archive/refs/tags/v1.7.10.tar.gz