aboutsummaryrefslogtreecommitdiffstats
path: root/testing/speedtest/APKBUILD
blob: ce8fe67738ad3fe0867894dc48b2e61b5e743f77 (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
32
33
34
35
36
37
38
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
_php=php7
pkgname=speedtest
pkgver=4.6.2
pkgrel=1
pkgdesc="Self-hosted HTML5 Speedtest"
url="http://speedtest.fdossena.com"
arch="noarch"
license="LGPL-3.0-only"
depends="$_php"
subpackages="$pkgname-doc $pkgname-examples"
source="$pkgname-$pkgver.tar.gz::https://github.com/adolfintel/speedtest/archive/$pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir"/$pkgname-$pkgver

_destdir="/usr/share/webapps/$pkgname"
_docdir="/usr/share/doc/$pkgname"


build() {
	return 0
}

package() {
	mkdir -p "$pkgdir"/$_destdir "$pkgdir"/$_docdir
	mv *.md "$pkgdir"/$_docdir
	mv garbage.php getIP.php empty.php speedtest_worker.min.js speedtest_worker.js \
		"$pkgdir"/$_destdir
	mv example-gauges.html "$pkgdir"/$_destdir/index.html
}

examples() {
	mkdir -p "$subpkgdir"/$_destdir
	mv "$builddir"/example* "$subpkgdir"/$_destdir
}

sha512sums="24fef6d9e9b9428e145ac564a66effdfbd84630a9183cb5e1c568ec8bd18d3577920c7ba631103a2c3f27f35cd4e2637b0c2598d61b1afe40642f58a447b5bd4  speedtest-4.6.2.tar.gz"