aports/community/irtt/APKBUILD
2024-07-03 11:11:54 +02:00

42 lines
1.2 KiB
Plaintext

# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=irtt
pkgver=0.9.1
pkgrel=26
pkgdesc="Isochronous Round-Trip Tester"
url="https://github.com/heistp/irtt"
arch="all"
license="GPL-2.0-or-later"
pkgusers="$pkgname"
pkggroups="$pkgname"
makedepends="go"
options="net"
source="https://github.com/heistp/irtt/archive/v$pkgver/irtt-$pkgver.tar.gz
update-go-mod.patch
irtt.initd
"
install="irtt.pre-install"
subpackages="$pkgname-openrc"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build ./cmd/irtt
}
check() {
go test -v
}
package() {
install -Dm755 irtt "$pkgdir"/usr/bin/irtt
install -Dm755 "$srcdir"/irtt.initd "$pkgdir"/etc/init.d/irtt
}
sha512sums="
072ce70a996cdc70247e896cc613abba7c21f238a508708934ec6cd04b0dec89408c01b7f82dcee6752aae85bca84f0679d32acd75b607e37614f331c238fad9 irtt-0.9.1.tar.gz
d6e97c3c3ed0bc68ec8ad1797e73f1325a7899e553b6074aeb7a9fdf8d4788cd29acc4d7ed98063055f67b8e2964f5cf534bbdac3bc5c06a99edf10010e0435c update-go-mod.patch
ebd1912a14d5a189cb7db349a63c7b25fb47c589d351d225e320b0b6892907c42c933e02309457c5168f63f3ce5c8de43da475210b7d8fa4b4fdac0c6d4de684 irtt.initd
"