Initial version

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-07-17 12:51:05 +02:00
commit 83006153b2
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 37 additions and 0 deletions

14
.SRCINFO Normal file
View file

@ -0,0 +1,14 @@
pkgbase = librespeed-cli
pkgdesc = Command line client for LibreSpeed
pkgver = 1.0.7
pkgrel = 1
url = https://github.com/librespeed/speedtest-cli
arch = i686
arch = x86_64
license = LGPL
makedepends = go
source = librespeed-cli-1.0.7::git+https://github.com/librespeed/speedtest-cli.git#tag=v1.0.7
sha512sums = SKIP
pkgname = librespeed-cli

23
PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
# 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"
license=(LGPL)
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}"
}