# Maintainer: Mark Wagie 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" }