summaryrefslogtreecommitdiff
path: root/libre/faenza-icon-theme/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-05-19 20:42:39 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-05-19 20:42:39 -0300
commitec35a37cd63a2d16976847eacd7a2daeff0b2a33 (patch)
treef5b02c02a1878c90e0cbb13b69817809c6268eeb /libre/faenza-icon-theme/PKGBUILD
parent42c3a339ed461fd27c0096874c5082ff7a0dc88b (diff)
downloadabslibre-ec35a37cd63a2d16976847eacd7a2daeff0b2a33.tar.gz
abslibre-ec35a37cd63a2d16976847eacd7a2daeff0b2a33.tar.bz2
abslibre-ec35a37cd63a2d16976847eacd7a2daeff0b2a33.zip
faenza-icon-theme: fix rebranding
Diffstat (limited to 'libre/faenza-icon-theme/PKGBUILD')
-rw-r--r--libre/faenza-icon-theme/PKGBUILD76
1 files changed, 76 insertions, 0 deletions
diff --git a/libre/faenza-icon-theme/PKGBUILD b/libre/faenza-icon-theme/PKGBUILD
new file mode 100644
index 000000000..0a722c25f
--- /dev/null
+++ b/libre/faenza-icon-theme/PKGBUILD
@@ -0,0 +1,76 @@
+# $Id: PKGBUILD 82319 2013-01-14 22:07:03Z thestinger $
+# Maintainer (Arch): Daniel Micay <danielmicay@gmail.com>
+# Contributor (Arch): Elia Notarangelo <elia.notarangelo AT gmail DOT com>
+# Contributor (Arch): Frikilinux <frikilinux at frikilinux.com.ar>
+# Contributor (Arch): graysky <graysky AT archlinux DOT us>
+# Contributor (Arch): Samsagax <samsagax AT gmail DOT com>
+# Contributor (Arch): simongmzlj <simongmzlj AT gmail DOT com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Jorge Araya Navarro <elcorreo@deshackra.com>
+# Contributor: Márcio Silva <coadde@parabola.nu>
+
+pkgname=faenza-icon-theme
+pkgver=1.3.1
+pkgrel=2
+pkgdesc="Icon theme designed for Equinox GTK theme (Parabola rebranded)"
+url="http://gnome-look.org/content/show.php/Faenza?content=128143"
+license=('GPL3')
+arch=('any')
+options=(!strip)
+makedepends=('librsvg')
+source=("http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/$pkgname/${pkgname}_${pkgver}.tar.gz"
+ 'distributor-logo-parabola.svg'
+ 'start-here-parabola-symbolic.svg')
+md5sums=('b5339b70cbb821b583499e725957b150'
+ '0dfb27e36d60266d8f4c3ea763ec1694'
+ 'e2301755fc4c552cfee7de72b6ed775a')
+
+prepare() {
+ cd "$srcdir/$pkgname-1.3"
+ rm -rv debian
+
+ # remove nonfree distros and software logos
+ for nonfree in archlinux debian fedora frugalware gentoo linux-mint mandriva opensuse redhat slackware ubuntu novell skype; do
+ find -name *$nonfree* -delete
+ done
+
+ # add the Parabola GNU/Linux-libre logos to the source code
+ cp -a "$srcdir/distributor-logo-parabola.svg" Faenza/places/scalable
+ cp -a "$srcdir/distributor-logo-parabola.svg" Faenza/places/scalable/start-here-parabola.svg
+ cp -a "$srcdir/start-here-parabola-symbolic.svg" Faenza/places/scalable
+
+ for size in 22 24 32 48 64 96; do
+ rsvg-convert -w $size -h $size -o Faenza/places/$size/distributor-logo-parabola.png "$srcdir/distributor-logo-parabola.svg"
+ rsvg-convert -w $size -h $size -o Faenza/places/$size/start-here-parabola.png "$srcdir/distributor-logo-parabola.svg"
+ rsvg-convert -w $size -h $size -o Faenza/places/$size/start-here-parabola-symbolic.png "$srcdir/start-here-parabola-symbolic.svg"
+
+ ln -sf Faenza/places/$size/distributor-logo-parabola.png Faenza/places/$size/parabola-logo.png
+ ln -sf Faenza/places/scalable/distributor-logo-parabola.svg parabola-logo.svg
+ ln -sf Faenza/places/scalable/start-here-parabola.svg Faenza-Dark/places/scalable/start-here-parabola.svg
+ ln -sf Faenza/places/scalable/start-here-parabola-symbolic.svg Faenza-Dark/places/scalable/start-here-parabola-symbolic.svg
+ done
+}
+
+package() {
+ cd "$srcdir/$pkgname-1.3"
+ mkdir -p "$pkgdir/usr/share/icons" "$pkgdir/usr/lib" "$pkgdir/usr/share"
+
+ cp -rf Faenza{,-Dark,-Darkest,-Darker,-Ambiance,-Radiance} "$pkgdir/usr/share/icons/"
+ cp -rf rhythmbox "$pkgdir/usr/lib/"
+ cp -rf emesene "$pkgdir/usr/share/"
+
+ # set the Parabola GNU/Linux-libre Distributor and start menu logo
+ for theme in Faenza{,-Dark}; do
+ for size in 22 24 32 48 64 96; do
+ cd "$pkgdir/usr/share/icons/$theme/places/$size/"
+ # no distributor-logo for Faenza-Dark
+ [[ $theme == Faenza ]] && ln -sf distributor-logo{-parabola,}.png
+ ln -sf start-here{-parabola,}.png
+ done
+ cd "$pkgdir/usr/share/icons/$theme/places/scalable/"
+ # no distributor-logo for Faenza-Dark
+ [[ $theme == Faenza ]] && ln -sf distributor-logo{-parabola,}.svg
+ ln -sf start-here{-parabola,}.svg
+ ln -sf start-here{-parabola-symbolic,-symbolic}.svg
+ done
+}