blob: d8db9688273f43b6b2ac9fb64df63f20e115f76c (
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
39
40
41
42
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=speedtest-librespeed
pkgver=1.3.0
pkgrel=1
pkgdesc="A graphical librespeed client written using gtk4 + libadwaita"
arch=('any')
url="https://github.com/Ketok4321/speedtest"
license=('GPL-3.0-or-later')
depends=('libadwaita' 'python-aiohttp' 'python-cairo' 'python-gobject')
makedepends=('blueprint-compiler' 'git' 'meson')
checkdepends=('appstream-glib')
_commit=e02041f6b88348eaa0aa61a65eb6bfccf632a87c # tags/v1.3.0^0
source=("git+https://github.com/Ketok4321/speedtest.git#commit=${_commit}")
sha256sums=('SKIP')
pkgver() {
cd speedtest
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
cd speedtest
# Binary name conflicts with speedtest-cli & ookla-speedtest-bin
sed -i "s/Exec=speedtest/Exec=$pkgname/g" data/xyz.ketok.Speedtest.desktop.in
}
build() {
arch-meson speedtest build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs || :
}
package() {
meson install -C build --destdir "$pkgdir"
# Binary name conflicts with speedtest-cli & ookla-speedtest-bin
mv "$pkgdir/usr/bin/speedtest" "$pkgdir/usr/bin/$pkgname"
}
|