template 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Template file for 'faenza-icon-theme'
  2. pkgname=faenza-icon-theme
  3. version=1.3.1
  4. revision=2
  5. archs=noarch
  6. wrksrc="faenza-icon-theme-${version%.*}"
  7. hostmakedepends="librsvg-utils"
  8. depends="gtk-update-icon-cache hicolor-icon-theme"
  9. short_desc="Faenza icon theme"
  10. maintainer="Alexander Mamay <alexander@mamay.su>"
  11. license="GPL-3.0-or-later"
  12. homepage="http://tiheum.deviantart.com/art/Faenza-Icons-173323228"
  13. distfiles="http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/faenza-icon-theme/faenza-icon-theme_${version}.tar.gz"
  14. checksum=afd1c32229989e4cf09733c1ce5f2a651e585d86f45e98e9de6e8813f15d0edc
  15. # Liberation
  16. # Some commands below has been taken from:
  17. # https://git.parabola.nu/abslibre.git/tree/libre/faenza-icon-theme/PKGBUILD
  18. pre_build() {
  19. rm -rv debian
  20. # remove nonfree distros and application logos
  21. for nonfree in archlinux debian fedora frugalware gentoo linux-mint mandriva opensuse redhat slackware ubuntu flash rpmdrake novell skype; do
  22. find -name *$nonfree* -delete
  23. done
  24. # add the Parabola GNU/Linux-libre logos to the source code
  25. cp -a "${FILESDIR}/distributor-logo-parabola.svg" Faenza/places/scalable
  26. cp -a "${FILESDIR}/distributor-logo-parabola.svg" Faenza/places/scalable/start-here-parabola.svg
  27. cp -a "${FILESDIR}/start-here-parabola-symbolic.svg" Faenza/places/scalable
  28. for size in 22 24 32 48 64 96; do
  29. rsvg-convert -w $size -h $size -o Faenza/places/$size/distributor-logo-parabola.png "${FILESDIR}/distributor-logo-parabola.svg"
  30. rsvg-convert -w $size -h $size -o Faenza/places/$size/start-here-parabola.png "${FILESDIR}/distributor-logo-parabola.svg"
  31. rsvg-convert -w $size -h $size -o Faenza/places/$size/start-here-parabola-symbolic.png "${FILESDIR}/start-here-parabola-symbolic.svg"
  32. ln -sf Faenza/places/$size/distributor-logo-parabola.png Faenza/places/$size/parabola-logo.png
  33. ln -sf Faenza/places/scalable/distributor-logo-parabola.svg parabola-logo.svg
  34. ln -sf Faenza/places/scalable/start-here-parabola.svg Faenza-Dark/places/scalable/start-here-parabola.svg
  35. ln -sf Faenza/places/scalable/start-here-parabola-symbolic.svg Faenza-Dark/places/scalable/start-here-parabola-symbolic.svg
  36. done
  37. }
  38. do_install() {
  39. vmkdir usr/share/icons
  40. vcopy Faenza* usr/share/icons/
  41. for theme in Faenza{,-Dark}; do
  42. cd "${DESTDIR}/usr/share/icons/${theme}/apps/scalable/"
  43. # Liberation: no distributor-logo for Faenza-Dark
  44. [[ $theme == Faenza ]] && ln -sf ${FILESDIR}/distributor-logo{-parabola,}.svg
  45. ln -sf ${FILESDIR}/start-here{-parabola,}.svg
  46. ln -sf ${FILESDIR}/start-here{-parabola-symbolic,-symbolic}.svg
  47. ln -sf gnome-session-reboot.svg system-reboot.svg
  48. for size in 16 22 24 32 48 64 96; do
  49. cd "${DESTDIR}/usr/share/icons/${theme}/apps/${size}/"
  50. ln -sf gnome-session-reboot.png system-reboot.png
  51. # Liberation: no distributor-logo for Faenza-Dark
  52. [[ $theme == Faenza ]] && ln -sf ${FILESDIR}/distributor-logo{-parabola,}.png
  53. ln -sf ${FILESDIR}/start-here{-parabola,}.png
  54. done
  55. done
  56. }