mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-25 02:21:58 +01:00
32 lines
930 B
Plaintext
32 lines
930 B
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=speedtest-cli
|
|
pkgver=2.1.1
|
|
pkgrel=1
|
|
pkgdesc="Command line interface for testing internet bandwidth using speedtest.net"
|
|
url="https://github.com/sivel/speedtest-cli"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3"
|
|
makedepends="python3-dev"
|
|
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
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
install -Dm755 speedtest.py "$pkgdir"/usr/bin/speedtest-cli
|
|
}
|
|
|
|
sha512sums="afc1fc0264d5124efe5afc9b0583b2b37ae50eac229e6971656a906b9a7a78d44158485d5c2e44c3430694fd7355926f578a54a196cc9b9baf6cfbc357a789d1 speedtest-cli-2.1.1.tar.gz"
|