# $Id: PKGBUILD 90335 2013-05-11 16:04:01Z tomegun $ #Maintainer: Stéphane Gaudreault #Contributor: BlackEagle #Contributor: Dany Martineau #Maintainer (Parabola): André Silva #Contributor (Parabola): Kete #Contributor (Parabola): Márcio Silva _pkgname=clementine pkgname=clementine-libre pkgver=1.1.1 pkgrel=8 pkgdesc="A music player and library organizer, without nonfree artwork and spotify support" url="http://www.clementine-player.org/" license=('GPL') arch=('i686' 'x86_64') depends=('gstreamer0.10-base' 'taglib' 'glew' 'liblastfm' 'libgpod' 'projectm' 'libmtp' 'libplist' 'hicolor-icon-theme' 'qt4' 'libimobiledevice' 'chromaprint' 'sparsehash' 'qjson' 'libcdio-paranoia' 'protobuf' 'qca' 'qca-ossl' 'gvfs') makedepends=('cmake' 'boost' 'mesa') optdepends=('gstreamer0.10-base-plugins: for more open formats' 'gstreamer0.10-good-plugins: for use with "Good" plugin libraries' 'gstreamer0.10-bad-libre-plugins: for use with "Bad" plugin libraries' 'gstreamer0.10-ugly-plugins: for use with "Ugly" plugin libraries') replaces=('clementine') conflicts=('clementine') provides=("clementine=$pkgver") source=(http://clementine-player.googlecode.com/files/${_pkgname}-${pkgver}.tar.gz 'clementine-1.1.1-libimobiledevice-fix.patch' 'remove-nonfree-artwork-and-spotify.patch' 'moognu.png') install=clementine.install build() { cd "${srcdir}/${_pkgname}-${pkgver}" patch -Np1 < "$srcdir"/clementine-1.1.1-libimobiledevice-fix.patch # Remove nonfree nonfree artwork and spotify references on files patch -Np1 -i ../remove-nonfree-artwork-and-spotify.patch # Remove nonfree spotifyblob folders rm -rv ext/{clementine-spotifyblob,libclementine-spotifyblob} # Remove nonfree spotify files rm -v cmake/SpotifyVersion.cmake rm -v data/spotify-core-logo-128x128.png rm -v data/icons/svg/spotify.svg rm -v data/schema/schema-30.sql rm -v src/{globalsearch/spotifysearchprovider.{cpp,h},internet/spotify{blobdownloader.{cpp,h},server.{cpp,h},service.{cpp,h},settingspage.{cpp,h,ui}}} ## Remove nonfree nyancat.png rm -v data/nyancat.png ## Put moognu.png to the source code cp -v ../moognu.png data # Create a blank file due that is a dependency for clementine touch data/schema/schema-30.sql cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_PROJECTM=1 -DBUILD_WERROR=0 make } package() { cd "${srcdir}/${_pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install } md5sums=('28e4afb822388bd337a761db8f86febf' '736df6cd828a3172701f63c8dc978cb9' '2ab57bff0ed8f7ba0d96d561ac54d1c2' '59a8c0d7659898c457b95f877718cf1c')