mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 07:31:35 +01:00
- Correct license - Install a default test and move the others into a subpkg - Add depends
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# 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"
|