l_template_changes.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --- template.orig 2020-11-08 13:32:51.921982000 +0600
  2. +++ template 2020-11-08 20:01:53.723899000 +0600
  3. @@ -12,3 +12,3 @@ makedepends="chromaprint-devel boost-dev
  4. libusbmuxd-devel libmtp-devel libcdio-devel pulseaudio-devel glu-devel
  5. - taglib-devel crypto++-devel $(vopt_if spotify libspotify-devel)
  6. + taglib-devel crypto++-devel
  7. libgpod-devel libmygpo-qt-devel qt5-x11extras-devel qt5-plugin-mysql
  8. @@ -23,15 +23,31 @@ distfiles="https://github.com/clementine
  9. checksum=e1fa2482b81336282a36a5451a0217c274e5b45aa3eeed83fe3fd29a5df59397
  10. -build_options="spotify"
  11. -case "$XBPS_TARGET_MACHINE" in
  12. - x86_64 | i686 | armv7l)
  13. - build_options_default="spotify";;
  14. - *)
  15. - if [ "$build_option_spotify" ]; then
  16. - broken="no spotify blob"
  17. - fi
  18. - ;;
  19. -esac
  20. +# Liberation
  21. +# Some code has been taken and modified from:
  22. +# https://git.parabola.nu/abslibre.git/tree/libre/clementine/PKGBUILD
  23. +post_patch() {
  24. + # remove nonfree artwork for the Nyan Cat plugin
  25. + # https://labs.parabola.nu/issues/329
  26. + rm -v data/nyancat.png
  27. -subpackages="$(vopt_if spotify clementine-spotify)"
  28. + # remove Spotifyblob files
  29. + rm -rv ext/{$pkgname-spotifyblob,lib${pkgname}-spotifyblob}
  30. +
  31. + # remove Spotify files
  32. + rm -rv src/internet/spotify
  33. + rm -v data/icons/svg/spotify.svg
  34. + rm -v data/providers/{22x22,32x32,48x48}/spotify.png
  35. + rm -v data/spotify-attribution.png
  36. + rm -v data/clementine-spotify-public.pem
  37. + rm -v cmake/SpotifyVersion.cmake
  38. + rm -v data/schema/schema-30.sql
  39. + rm -v src/globalsearch/spotifysearchprovider.{cpp,h}
  40. +
  41. + # move free Nyan Cat replacement mascot (MooGNU) to the source code
  42. + # https://labs.parabola.nu/issues/329
  43. + install -m644 -v ${FILESDIR}/moognu.png data
  44. +
  45. + # create a blank file because it's a dependency for Clementine
  46. + touch data/schema/schema-30.sql
  47. +}
  48. @@ -41,10 +57,3 @@ post_install() {
  49. -clementine-spotify_package() {
  50. - depends="${sourcepkg}>=${version}_${revision}"
  51. - short_desc+=" - spotify extension"
  52. - license="Apache-2.0"
  53. - repository="nonfree"
  54. - pkg_install() {
  55. - vmove usr/bin/clementine-spotifyblob
  56. - }
  57. -}
  58. +# Liberation
  59. +# "clementine-spotify" package has been removed due to being nonfree