makedepends=(boost cmake qt6-base qt6-tools abseil-cpp alsa-lib chromaprint fftw gdk-pixbuf glib \
             gstreamer-plugins-base gstreamer-plugins-good icu kdsingleapplication \
             libcdio libmtp pulseaudio xorg-libx11 protobuf qt6-base taglib udisks2 \
             sparsehash)

description="A music player aimed at audio enthusiasts and music collectors"
url="https://www.strawbs.org/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="strawberry"
version="1.2.16"
release=4

source=(https://github.com/strawberrymusicplayer/strawberry/releases/download/$version/strawberry-$version.tar.xz)

build () { 

  cmake -B build \
        -S $name-$version \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_WITH_QT6=ON \
        -DENABLE_GPOD=OFF \
        -DENABLE_EBUR128=OFF \
        -DENABLE_DISCORD_RPC=OFF \
        -DCMAKE_CXX_FLAGS="$CXXFLAGS -DQT_NO_DEBUG_OUTPUT"

  cmake --build build
  DESTDIR="$PKG" cmake --install build
}
