summaryrefslogtreecommitdiffstats
path: root/testing/speedtest-cli/APKBUILD
blob: 24395edc7b97132c2ef56507ed817e7e3db8e616 (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.1
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="python"
depends_dev="python-dev py-setuptools"
makedepends="$depends_dev"
install=""
subpackages=""
source="https://github.com/sivel/$pkgname/archive/v$pkgver.zip"

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

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

md5sums="8ce0a1f2b327b34d7a4976f71593bbad  v0.3.1.zip"
sha256sums="adf49d5161d10d0901b674265c0932d4f902fe0fa138dafcc06fbed58816eb16  v0.3.1.zip"
sha512sums="78e9237a26defce576d43ebd6a57c518d72b95b588a9e97ad776535e8120301bb8336378dafeb9b960c482d6468671a5af49ce14903d3c8683337d0b2f3db843  v0.3.1.zip"