From ec35a37cd63a2d16976847eacd7a2daeff0b2a33 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 19 May 2014 20:42:39 -0300 Subject: faenza-icon-theme: fix rebranding --- libre/faenza-icon-theme/PKGBUILD | 76 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 libre/faenza-icon-theme/PKGBUILD (limited to 'libre/faenza-icon-theme/PKGBUILD') 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 +# Contributor (Arch): Elia Notarangelo +# Contributor (Arch): Frikilinux +# Contributor (Arch): graysky +# Contributor (Arch): Samsagax +# Contributor (Arch): simongmzlj +# Maintainer: André Silva +# Contributor: Jorge Araya Navarro +# Contributor: Márcio Silva + +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 +} -- cgit v1.2.3-54-g00ecf