summaryrefslogtreecommitdiff
path: root/libre/faenza-icon-theme/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/faenza-icon-theme/PKGBUILD')
-rw-r--r--libre/faenza-icon-theme/PKGBUILD78
1 files changed, 78 insertions, 0 deletions
diff --git a/libre/faenza-icon-theme/PKGBUILD b/libre/faenza-icon-theme/PKGBUILD
new file mode 100644
index 000000000..a9a55bfba
--- /dev/null
+++ b/libre/faenza-icon-theme/PKGBUILD
@@ -0,0 +1,78 @@
+# $Id: PKGBUILD 113926 2014-07-01 10:03:56Z 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=3.parabola1
+pkgdesc='Icon theme designed for Equinox GTK theme, without nonfree distros and application icons (Parabola rebranded)'
+url='http://gnome-look.org/content/show.php/Faenza?content=128143'
+license=('GPL3')
+arch=('any')
+replaces=(${pkgname}-libre)
+conflicts=(${pkgname}-libre)
+makedepends=('librsvg')
+options=(!strip)
+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 application logos
+ for nonfree in archlinux debian fedora frugalware gentoo linux-mint mandriva opensuse redhat slackware ubuntu flash rpmdrake 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 $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
+}