l_template_changes.patch 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --- template.orig 2020-11-01 13:35:24.249819000 +0600
  2. +++ template 2020-11-02 14:52:18.446223000 +0600
  3. @@ -6,2 +6,3 @@ archs=noarch
  4. wrksrc="faenza-icon-theme-${version%.*}"
  5. +hostmakedepends="librsvg-utils"
  6. depends="gtk-update-icon-cache hicolor-icon-theme"
  7. @@ -14,2 +15,30 @@ checksum=afd1c32229989e4cf09733c1ce5f2a6
  8. +# Liberation
  9. +# Some commands below has been taken from:
  10. +# https://git.parabola.nu/abslibre.git/tree/libre/faenza-icon-theme/PKGBUILD
  11. +pre_build() {
  12. + rm -rv debian
  13. +
  14. + # remove nonfree distros and application logos
  15. + for nonfree in archlinux debian fedora frugalware gentoo linux-mint mandriva opensuse redhat slackware ubuntu flash rpmdrake novell skype; do
  16. + find -name *$nonfree* -delete
  17. + done
  18. +
  19. + # add the Parabola GNU/Linux-libre logos to the source code
  20. + cp -a "${FILESDIR}/distributor-logo-parabola.svg" Faenza/places/scalable
  21. + cp -a "${FILESDIR}/distributor-logo-parabola.svg" Faenza/places/scalable/start-here-parabola.svg
  22. + cp -a "${FILESDIR}/start-here-parabola-symbolic.svg" Faenza/places/scalable
  23. +
  24. + for size in 22 24 32 48 64 96; do
  25. + rsvg-convert -w $size -h $size -o Faenza/places/$size/distributor-logo-parabola.png "${FILESDIR}/distributor-logo-parabola.svg"
  26. + rsvg-convert -w $size -h $size -o Faenza/places/$size/start-here-parabola.png "${FILESDIR}/distributor-logo-parabola.svg"
  27. + rsvg-convert -w $size -h $size -o Faenza/places/$size/start-here-parabola-symbolic.png "${FILESDIR}/start-here-parabola-symbolic.svg"
  28. +
  29. + ln -sf Faenza/places/$size/distributor-logo-parabola.png Faenza/places/$size/parabola-logo.png
  30. + ln -sf Faenza/places/scalable/distributor-logo-parabola.svg parabola-logo.svg
  31. + ln -sf Faenza/places/scalable/start-here-parabola.svg Faenza-Dark/places/scalable/start-here-parabola.svg
  32. + ln -sf Faenza/places/scalable/start-here-parabola-symbolic.svg Faenza-Dark/places/scalable/start-here-parabola-symbolic.svg
  33. + done
  34. +}
  35. +
  36. do_install() {
  37. @@ -20,2 +49,8 @@ do_install() {
  38. cd "${DESTDIR}/usr/share/icons/${theme}/apps/scalable/"
  39. +
  40. + # Liberation: no distributor-logo for Faenza-Dark
  41. + [[ $theme == Faenza ]] && ln -sf ${FILESDIR}/distributor-logo{-parabola,}.svg
  42. + ln -sf ${FILESDIR}/start-here{-parabola,}.svg
  43. + ln -sf ${FILESDIR}/start-here{-parabola-symbolic,-symbolic}.svg
  44. +
  45. ln -sf gnome-session-reboot.svg system-reboot.svg
  46. @@ -24,2 +59,6 @@ do_install() {
  47. ln -sf gnome-session-reboot.png system-reboot.png
  48. +
  49. + # Liberation: no distributor-logo for Faenza-Dark
  50. + [[ $theme == Faenza ]] && ln -sf ${FILESDIR}/distributor-logo{-parabola,}.png
  51. + ln -sf ${FILESDIR}/start-here{-parabola,}.png
  52. done