pkgbuild-ookla-speedtest-bin

Speedtest CLI by Ookla
git clone git://fossdaily.xyz/pkgbuild-ookla-speedtest-bin
Log | Files | Refs

commit 1e2a4f266aabac1340f5b962cf45c57970540108
Author: caltlgin <contact@fossdaily.xyz>
Date:   Wed, 18 Nov 2020 17:05:02 +1300

Add to caltlgin repo

Diffstat:
A.SRCINFO | 27+++++++++++++++++++++++++++
A.gitignore | 4++++
APKGBUILD | 40++++++++++++++++++++++++++++++++++++++++
3 files changed, 71 insertions(+), 0 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = ookla-speedtest-bin + pkgdesc = Speedtest CLI by Ookla + pkgver = 1.0.0 + pkgrel = 1 + url = https://www.speedtest.net + arch = x86_64 + arch = armv7h + arch = aarch64 + license = custom:Ookla + depends = ca-certificates + provides = ookla-speedtest + conflicts = ookla-speedtest + source = ookla-speedtest-1.0.0-1-eula::https://www.speedtest.net/about/eula + source = ookla-speedtest-1.0.0-1-terms::https://www.speedtest.net/about/terms + source = ookla-speedtest-1.0.0-1-privacy::https://www.speedtest.net/about/privacy + sha256sums = 50ab5730a4c8f9499dbaccc92a84bd4a2830de39ac1101810f14af8a53576999 + sha256sums = 03b3540702061495bfa384ed82840ca77acc3f5d0c178b9cb531dcb843524c96 + sha256sums = 7b488c8cc014fba2c5d2c03005ba24d0aa88c22ddf12045c18aac557dd21a6a4 + source_x86_64 = ookla-speedtest-1.0.0-x86_64.tgz::https://ookla.bintray.com/download/ookla-speedtest-1.0.0-x86_64-linux.tgz + sha256sums_x86_64 = 5fe2028f0d4427e4f4231d9f9cf70e6691bb890a70636d75232fe4d970633168 + source_armv7h = ookla-speedtest-1.0.0-armv7h.tgz::https://ookla.bintray.com/download/ookla-speedtest-1.0.0-armhf-linux.tgz + sha256sums_armv7h = 04b54991cfb9492ea8b2a3500340e7eeb78065a00ad25a032be7763f1415decb + source_aarch64 = ookla-speedtest-1.0.0-aarch64.tgz::https://ookla.bintray.com/download/ookla-speedtest-1.0.0-aarch64-linux.tgz + sha256sums_aarch64 = 073684dc3490508ca01b04c5855e04cfd797fed33f6ea6a6edc26dfbc6f6aa9e + +pkgname = ookla-speedtest-bin + diff --git a/.gitignore b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +_name='speedtest' +_pkgname="ookla-${_name}" +pkgname="${_pkgname}-bin" +pkgver=1.0.0 +pkgrel=1 +pkgdesc='Speedtest CLI by Ookla' +arch=('x86_64' 'armv7h' 'aarch64') +url='https://www.speedtest.net' +_url_source='https://ookla.bintray.com/download' +license=('custom:Ookla') +depends=('ca-certificates') +provides=("${_pkgname}") +conflicts=("${_pkgname}") + +source=("${_pkgname}-${pkgver}-${pkgrel}-eula::${url}/about/eula" + "${_pkgname}-${pkgver}-${pkgrel}-terms::${url}/about/terms" + "${_pkgname}-${pkgver}-${pkgrel}-privacy::${url}/about/privacy") +source_x86_64=("${_pkgname}-${pkgver}-x86_64.tgz::${_url_source}/${_pkgname}-${pkgver}-x86_64-linux.tgz") +source_armv7h=("${_pkgname}-${pkgver}-armv7h.tgz::${_url_source}/${_pkgname}-${pkgver}-armhf-linux.tgz") +source_aarch64=("${_pkgname}-${pkgver}-aarch64.tgz::${_url_source}/${_pkgname}-${pkgver}-aarch64-linux.tgz") + +sha256sums=('50ab5730a4c8f9499dbaccc92a84bd4a2830de39ac1101810f14af8a53576999' + '03b3540702061495bfa384ed82840ca77acc3f5d0c178b9cb531dcb843524c96' + '7b488c8cc014fba2c5d2c03005ba24d0aa88c22ddf12045c18aac557dd21a6a4') +sha256sums_x86_64=('5fe2028f0d4427e4f4231d9f9cf70e6691bb890a70636d75232fe4d970633168') +sha256sums_armv7h=('04b54991cfb9492ea8b2a3500340e7eeb78065a00ad25a032be7763f1415decb') +sha256sums_aarch64=('073684dc3490508ca01b04c5855e04cfd797fed33f6ea6a6edc26dfbc6f6aa9e') + +package() { + install -Dvm755 "${_name}" "${pkgdir}/usr/bin/${_pkgname}" + install -Dvm644 "${_name}.5" "${pkgdir}/usr/share/man/man5/${_pkgname}.5" + install -Dvm644 "${_name}.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md" + for l in 'eula' 'terms' 'privacy'; do + install -Dvm644 "${_pkgname}-${pkgver}-${pkgrel}-${l}" "${pkgdir}/usr/share/licenses/${_pkgname}/${l}.html" + done +} + +# vim: ts=2 sw=2 et: