diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -2,7 +2,7 @@ # Contributor: Fixed Torres <aur_linuxero@outlook.com> pkgname=sayonara-player -_pkgver=1.7.0-stable3 +_pkgver=1.9.0-stable1 pkgver=${_pkgver//-/_} 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." @@ -11,6 +11,7 @@ url="https://sayonara-player.com/" license=(GPL3) depends=(qt5-base taglib gst-plugins-base gst-plugins-good) makedepends=(git cmake qt5-tools qt5-svg gst-plugins-bad) +checkdepends=(xorg-server-xvfb) optdepends=('gst-libav: additional codecs' 'gst-plugins-bad: additional codecs' 'gst-plugins-ugly: additional codecs') @@ -26,17 +27,17 @@ build() { cd "${srcdir}/${pkgname}/build" cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DWITH_TESTS=1 make } check() { - cd "${srcdir}/${pkgname}/build" - make test || true + cd "${srcdir}/sayonara-player" + xvfb-run -s '-screen 0 1920x1080x24 -nolisten local' ctest --test-dir build --output-on-failure } - + package() { - cd "${srcdir}/${pkgname}/build" - make DESTDIR="$pkgdir/" install + cd "${srcdir}/sayonara-player" + DESTDIR="$pkgdir" cmake --install build } |