# Maintainer (Arch): Maxime Gauduin # Contributor (Arch): Stéphane Gaudreault # Contributor (Arch): BlackEagle # Contributor (Arch): Dany Martineau # Maintainer (Hyperbola): André Silva # Contributor (Hyperbola): Márcio Silva # Maintainer: Omar Vega Ramos # Contributor: Kete # rationale for inclusion in libre: # - replaced nonfree nyancat artwork with moognu # - removed spotify support # # additional changes: # - build from release tarball instead of VCS pkgname=clementine _pkgname=$pkgname-libre pkgver=1.3.1.r831.664c5a31f pkgrel=3 pkgrel+=.parabola2 pkgdesc='A modern music player and library organizer' pkgdesc+=', without nonfree artwork and Spotify support' url=https://www.clementine-player.org/ license=(GPL) arch=(x86_64) arch+=(i686 armv7h) depends=( chromaprint crypto++ fftw glew glib2 gst-plugins-base-libs gstreamer libcdio libgl libgpod liblastfm-qt5 libmtp libmygpo-qt5 libpulse libx11 protobuf qt5-base qt5-x11extras sqlite zlib libprotobuf.so ) makedepends=( boost cmake git mesa qt5-tools sparsehash ) optdepends=( 'gst-plugins-base: "Base" plugin libraries' 'gst-plugins-good: "Good" plugin libraries' 'gst-plugins-bad: "Bad" plugin libraries' 'gst-plugins-ugly: "Ugly" plugin libraries' 'gst-libav: Libav plugin' 'gvfs: Various devices support' ) source=( git+https://github.com/clementine-player/Clementine.git#commit=664c5a31f9cf519af5a4c3adcb30dbbc73d037d6 clementine-gcc6.patch remove-nonfree-artwork-and-spotify.patch moognu.png ) sha256sums=('SKIP' '05bd4dc0138eed084332fa1a688a96858418731f337f54e0d8ab0853123f40ee' '75536b5290ebcd6126d9e8796c3f15a0b0d5339257060ebab511dfe665d64e32' 'c6918617769152f3617c61f721819e69d03f671b85760b11cfe45abd53955bc4') pkgver() { cd Clementine git describe --tags | sed 's/-/.r/; s/-g/./' } prepare() { if [[ -d build ]]; then rm -rf build fi mkdir build cd Clementine # Fix build with GCC 6 patch -p1 -i ../clementine-gcc6.patch # https://github.com/clementine-player/Clementine/pull/5630 git cherry-pick -n 8a6cc8b5069265e1e92e22def985e22c5955e503 # FS#58413 git cherry-pick -n -m 1 75f9439843a0e9cdc26cd739d5e1dbd93bd974bc # Fix DI.FM git cherry-pick -n ddfa5e63f1ef0e243a007efbe576fceb9b2442e8 # remove nonfree artwork for the Nyan Cat plugin # https://labs.parabola.nu/issues/329 rm -v data/nyancat.png # remove nonfree artwork and Spotify references patch -Np1 -i ../remove-nonfree-artwork-and-spotify.patch # remove Spotifyblob files rm -rv ext/{$pkgname-spotifyblob,lib${pkgname}-spotifyblob} # remove Spotify files rm -rv src/internet/spotify rm -v data/icons/svg/spotify.svg rm -v data/providers/{22x22,32x32,48x48}/spotify.png rm -v data/spotify-attribution.png rm -v data/clementine-spotify-public.pem rm -v cmake/SpotifyVersion.cmake rm -v data/schema/schema-30.sql rm -v src/globalsearch/spotifysearchprovider.{cpp,h} # move free Nyan Cat replacement mascot (MooGNU) to the source code # https://labs.parabola.nu/issues/329 install -m644 -v ../moognu.png data # create a blank file because it's a dependency for Clementine touch data/schema/schema-30.sql } build() { cd build cmake ../Clementine \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { make DESTDIR="${pkgdir}" -C build install } # vim: ts=2 sw=2 et: