diff options
author | FabioLolix | 2024-03-03 10:49:30 +0100 |
---|---|---|
committer | FabioLolix | 2024-03-03 10:49:30 +0100 |
commit | 635364f6a529c3d9c28ffa0b2d3b2c172f910201 (patch) | |
tree | 8f9d04bda5200ffa07479994849a331aa3b1c2b1 /PKGBUILD | |
parent | a07c6fc58c1cd9583b6d5e63dad9a9d065bd6b78 (diff) | |
download | aur-sayonara-player.tar.gz |
v1.9.0-stable1, tests improvement
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 } |