aboutsummaryrefslogtreecommitdiffstats
path: root/main/speedtest-cli/APKBUILD
blob: 481b8473693f7c7ed1d9d9b7f0df8903707fed57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=speedtest-cli
pkgver=1.0.6
pkgrel=0
pkgdesc="Command line interface for testing internet bandwidth using speedtest.net"
url="https://github.com/sivel/speedtest-cli"
arch="noarch"
license="ASL 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="18bd7665aab86e2415906536d69ce3e07784b3625a9d1a01c3e5e86b1c4f5dbb72301c6a4fcfbf259a52fff5ea0826b2cd9bb5166e05335cb48729b5d74dd921  speedtest-cli-1.0.6.tar.gz"