2020-07-17 10:51:05 +00:00
|
|
|
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
|
|
|
|
pkgname=librespeed-cli
|
|
|
|
pkgver=1.0.7
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Command line client for LibreSpeed"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="https://github.com/librespeed/speedtest-cli"
|
2020-07-17 10:56:27 +00:00
|
|
|
license=(LGPL3)
|
2020-07-17 10:51:05 +00:00
|
|
|
makedepends=(go)
|
|
|
|
source=("${pkgname}-${pkgver}::git+${url}.git#tag=v${pkgver}")
|
|
|
|
sha512sums=('SKIP')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
bash build.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
install -Dm755 "out/${pkgname}-$(go env GOOS)-$(go env GOARCH)" "${pkgdir}/usr/bin/${pkgname}"
|
|
|
|
install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
}
|