# Contributor: knuxify # Maintainer: knuxify pkgname=strawberry pkgver=1.0.18 pkgrel=2 pkgdesc="Strawberry Music Player" url="https://strawberrymusicplayer.org" arch="all" license="GPL-3.0-or-later" depends="gst-plugins-base gst-plugins-good qt6-qtbase-sqlite icu-data-full" makedepends=" alsa-lib-dev boost-dev chromaprint-dev cmake dbus-dev fftw-dev glib-dev gnutls-dev gst-plugins-base-dev gstreamer-dev icu-dev libcdio-dev libgpod-dev libmtp-dev libxcb-dev protobuf-dev pulseaudio-dev qt6-qtbase-dev qt6-qttools-dev samurai sparsehash sqlite-dev taglib-dev " checkdepends="gtest-dev xvfb-run" subpackages="$pkgname-doc" source="https://files.strawberrymusicplayer.org/strawberry-$pkgver.tar.xz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DBUILD_WITH_QT6=ON \ $CMAKE_CROSSOPTS . cmake --build build } check() { xvfb-run -a cmake --build build --target run_strawberry_tests } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 3a4c38198ac71384bfadb336b77fb316009836340fe763a7fc00c7d084ca219797512f30fe8487a086ca37860c707c661865eea00a89f6d8058c063380ed7a94 strawberry-1.0.18.tar.xz "