Commit cdaf9d0f authored by Francesco Colista's avatar Francesco Colista

main/speedtest-cli: upgrade to 1.0.4, modernize APKBUILD

parent a3cd9441
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=speedtest-cli
pkgver=1.0.3
pkgver=1.0.4
pkgrel=0
pkgdesc="Command line interface for testing internet bandwidth using speedtest.net"
url="https://github.com/sivel/speedtest-cli"
......@@ -9,20 +9,23 @@ arch="noarch"
license="ASL 2.0"
depends="python3"
makedepends="python3-dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/sivel/speedtest-cli/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
check() {
cd "$builddir"
python3 setup.py check
}
build() {
cd "$builddir"
python3 setup.py build || return 1
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm755 speedtest.py "$pkgdir"/usr/bin/speedtest-cli
}
sha512sums="0a8527e5dc60ca55c199619707c344b6e4e44702a5283c183c3c057776464933bf039ee3a3928c1a48c2d2675d0186b89f25670b1ef17ea237e98b7d813f8f1e speedtest-cli-1.0.3.tar.gz"
sha512sums="30499e81b799c05400c7e2c5b15ec3191dbf09becaa93f68c5022773fd011f954129298dc226d2317c55b4f1077229f59dc05dff572fcb1d05c05f15af9a67b4 speedtest-cli-1.0.4.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment