template 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Template file for 'clementine'
  2. pkgname=clementine
  3. version=1.4.0rc1
  4. revision=1
  5. _fullver=$version-343-gb49afcc5b
  6. wrksrc=${pkgname}-${_fullver}
  7. build_style=cmake
  8. configure_args="-DUSE_SYSTEM_TAGLIB=ON -DBUILD_WERROR=OFF -DUSE_SYSTEM_PROJECTM=ON"
  9. hostmakedepends="gettext sparsehash pkg-config qt5-qmake qt5-host-tools protobuf"
  10. makedepends="chromaprint-devel boost-devel gst-plugins-base1-devel
  11. qt5-devel glew-devel sqlite-devel protobuf-devel libplist-devel
  12. libusbmuxd-devel libmtp-devel libcdio-devel pulseaudio-devel glu-devel
  13. taglib-devel crypto++-devel
  14. libgpod-devel libmygpo-qt-devel qt5-x11extras-devel qt5-plugin-mysql
  15. qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds qt5-plugin-odbc
  16. qt5-tools-devel liblastfm-qt5-devel libechonest-qt5-devel projectM-devel"
  17. depends="desktop-file-utils"
  18. short_desc="Modern music player and library organizer"
  19. maintainer="Andrea Brancaleoni <abc@pompel.me>"
  20. license="GPL-3.0-or-later"
  21. homepage="https://www.clementine-player.org/"
  22. distfiles="https://github.com/clementine-player/Clementine/releases/download/${_fullver}/${pkgname}-${_fullver}.tar.xz"
  23. checksum=e1fa2482b81336282a36a5451a0217c274e5b45aa3eeed83fe3fd29a5df59397
  24. # Liberation
  25. # Some code has been taken and modified from:
  26. # https://git.parabola.nu/abslibre.git/tree/libre/clementine/PKGBUILD
  27. post_patch() {
  28. # remove nonfree artwork for the Nyan Cat plugin
  29. # https://labs.parabola.nu/issues/329
  30. rm -v data/nyancat.png
  31. # remove Spotifyblob files
  32. rm -rv ext/{$pkgname-spotifyblob,lib${pkgname}-spotifyblob}
  33. # remove Spotify files
  34. rm -rv src/internet/spotify
  35. rm -v data/icons/svg/spotify.svg
  36. rm -v data/providers/{22x22,32x32,48x48}/spotify.png
  37. rm -v data/spotify-attribution.png
  38. rm -v data/clementine-spotify-public.pem
  39. rm -v cmake/SpotifyVersion.cmake
  40. rm -v data/schema/schema-30.sql
  41. rm -v src/globalsearch/spotifysearchprovider.{cpp,h}
  42. # move free Nyan Cat replacement mascot (MooGNU) to the source code
  43. # https://labs.parabola.nu/issues/329
  44. install -m644 -v ${FILESDIR}/moognu.png data
  45. # create a blank file because it's a dependency for Clementine
  46. touch data/schema/schema-30.sql
  47. }
  48. post_install() {
  49. rm -rf $DESTDIR/builddir
  50. }
  51. # Liberation
  52. # "clementine-spotify" package has been removed due to being nonfree