From 83006153b2503a8a6a7b91a49ba0df9d571bc0d2 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 17 Jul 2020 12:51:05 +0200 Subject: [PATCH] Initial version Signed-off-by: Knut Ahlers --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 23 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..674f8eb --- /dev/null +++ b/.SRCINFO @@ -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 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..e525199 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Knut Ahlers + +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}" +}