# Maintainer: Fabio 'Lolix' Loli -> https://github.com/FabioLolix # Contributor: Fixed Torres pkgname=sayonara-player-git pkgver=1.7.0.stable3.r78.g1eb2e3b7 pkgrel=1 pkgdesc="Small, clear and fast audio player for Linux written in C++, supported by the Qt framework. It uses Gstreamer as audio backend." arch=(x86_64 i686 aarch64) url="https://sayonara-player.com/" license=(GPL3) depends=(qt5-base taglib gst-plugins-base gst-plugins-good) makedepends=(cmake qt5-tools qt5-svg git gst-plugins-bad) optdepends=('gst-libav: additional codecs' 'gst-plugins-bad: additional codecs' 'gst-plugins-ugly: additional codecs') provides=(sayonara-player) conflicts=(sayonara-player) source=("git+https://gitlab.com/luciocarreras/sayonara-player.git") sha512sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "$srcdir/${pkgname%-git}" [[ -d build ]] || mkdir build } build() { cd "$srcdir/${pkgname%-git}/build" cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DWITH_TESTS=1 make } check() { cd "$srcdir/${pkgname%-git}/build" make test } package() { cd "$srcdir/${pkgname%-git}/build" make DESTDIR="$pkgdir/" install }