pkgname=clementine _pkgname=Clementine pkgver=1.4.0rc2 _pkgver=1.4.0rc2 pkgrel=15 _commit=d20c2244a82b65f1d2c444091649e28834a63341 pkgdesc="Modern music player and library organiser that takes advantage of Qt." url="https://www.clementine-player.org/" license=('GPL') arch=('x86_64') depends=('gstreamer' 'taglib' 'glew' 'liblastfm' 'libmtp' 'libplist' 'hicolor-icon-theme' 'qt5-x11extras' 'libimobiledevice' 'protobuf' 'libcdio' 'libcdio-paranoia' 'qca-qt5' 'chromaprint' 'sparsehash' 'gst-plugins-bad' 'gst-plugins-good' 'gst-plugins-ugly' 'pulseaudio' 'crypto++' 'libmygpo-qt') makedepends=('cmake' 'boost' 'mesa' 'qt5-tools') groups=('multimedia') source=("https://github.com/clementine-player/Clementine/archive/refs/tags/${_pkgver}.tar.gz" #source=("https://github.com/clementine-player/Clementine/archive/${_commit}.zip" 'qt5.15.diff') md5sums=('9a13e3e5e200d3b2f5db35adecef274b' '6d3ca42c0edb6ca32831aa2be518abc1') prepare() { cd ${_pkgname}-${_pkgver} sed -i 's|Exec=clementine %U|Exec=clementine|g' dist/org.clementine_player.Clementine.desktop #patch -p1 -i ${srcdir}/qt5.15.diff } build() { cmake -B build -S ${_pkgname}-${_pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DENABLE_BREAKPAD=OFF \ -DENABLE_SPOTIFY_BLOB=OFF \ -DUSE_SYSTEM_TAGLIB=ON \ -DENABLE_VISUALISATIONS=OFF \ -DCMAKE_CXX_STANDARD=17 cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }