# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com> pkgname=amberol-git pkgver=0.7.0.r10.gcd7b5aa pkgrel=2 pkgdesc="Plays music, and nothing else" arch=('x86_64' 'aarch64') url="https://gitlab.gnome.org/World/amberol" license=('GPL3') depends=('libadwaita' 'gstreamer' 'gst-plugins-base' 'gst-plugins-bad' 'gst-plugins-good') makedepends=('git' 'meson' 'cargo') checkdepends=('appstream-glib' 'reuse') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=(git+$url.git) b2sums=('SKIP') pkgver() { cd "${pkgname%-git}" ( set -o pipefail git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } build() { arch-meson "${pkgname%-git}" build meson compile -C build } check() { meson test -C build || : } package() { meson install -C build --destdir "$pkgdir" }