aboutsummaryrefslogtreecommitdiffstats
path: root/main/speedtest-cli/APKBUILD
blob: 81dea89fadba12063969790afa11d5b13ff86785 (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=0.3.4
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="python2"
depends_dev=""
makedepends="$depends_dev python2-dev py-setuptools"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/sivel/speedtest-cli/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
        cd "$_builddir"
        python2 setup.py build || return 1
}

package() {
        cd "$_builddir"
        python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
	install -Dm755 speedtest_cli.py "$pkgdir"/usr/bin/speedtest-cli
}

md5sums="45344501fab5e19492ae3ef1de4ed9ae  speedtest-cli-0.3.4.tar.gz"
sha256sums="e50646e245ea3c80c9653a532db0dbaef72f1c439330bcc22c381074c17b719d  speedtest-cli-0.3.4.tar.gz"
sha512sums="fb22ba9e17a30c172b8f751020d7117caf8b573dee112506917f24c5173e2901e0f0198b4946798daf3a27839519025f4a7f8f8942034bc19356b32d6a0f6851  speedtest-cli-0.3.4.tar.gz"