1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Maintainer: Frikilinux <frikilinux at frikilinux.com.ar>
# Contributor: Samsagax <[email protected]>

pkgname=faenza-icon-theme
pkgver=1.2
pkgrel=1
pkgdesc="Icon theme designed for Equinox GTK theme"
url="http://gnome-look.org/content/show.php/Faenza?content=128143"
license=('GPL3')
arch=('any')
source=("http://www.deviantart.com/download/173323228/faenza_icons_by_tiheum-d2v6x24.zip")
sha256sums=('37d87721dbb3357e38d1e683e1d705476bc5e6d75f0d07c3af4c5c0cf8a0131f')

package() {
    cd "${srcdir}"
    mkdir -p "${pkgdir}"/usr/share/icons
    tar -vxaf Faenza.tar.gz
    tar -vxaf Faenza-Dark.tar.gz
    tar -vxaf Faenza-Darkest.tar.gz
    tar -vxaf Faenza-Darker.tar.gz
    tar -vxaf Faenza-Ambiance.tar.gz
    tar -vxaf Faenza-Radiance.tar.gz

    # Distributor logo
    distributor="archlinux"
    iconname="distributor-logo-$distributor"
    cd ./Faenza/places/scalable/ && ln -sf ./$iconname.svg distributor-logo.svg && cd ../../..
    for size in 48 32 24 22; do
        cd ./Faenza/places/$size/ && ln -sf ./$iconname.png distributor-logo.png && cd ../../..
    done

    # Set distributor logo for Gnome main menu
    iconname="start-here-$distributor"
    for theme in Faenza Faenza-Dark; do
        cd ./$theme/places/scalable/ && ln -sf ./$iconname.svg start-here.svg && ln -sf ./$iconname-symbolic.svg start-here-symbolic.svg && cd ../../..
        for size in 48 32 24 22; do
            cd ./$theme/places/$size/ && ln -sf ./$iconname.png start-here.png && cd ../../..
        done
    done

    # Replace color icons with its monochrome versions
    for theme in Faenza Faenza-Dark
    do
        cd "${srcdir}"/$theme/apps/22
      ln -sf "${srcdir}"/$theme/status/22/covergloobus-panel.png ./covergloobus.png
      ln -sf "${srcdir}"/$theme/status/22/deluge-panel.png ./deluge.png
      ln -sf "${srcdir}"/$theme/status/22/exaile-panel.png ./exaile.png
        ln -sf "${srcdir}"/$theme/status/22/fusion-icon-symbolic.png ./fusion-icon.png
        ln -sf "${srcdir}"/$theme/status/22/gnome-do-panel.png ./gnome-do.png
        ln -sf "${srcdir}"/$theme/status/22/ibus-panel.png ./ibus.png
        ln -sf "${srcdir}"/$theme/status/22/kupfer-panel.png ./kupfer.png
        ln -sf "${srcdir}"/$theme/status/22/me-tv-panel.png ./me-tv.png
        ln -sf "${srcdir}"/$theme/status/22/zim-panel.png ./zim.png
    done

    # Copy the icons
    for theme in Faenza Faenza-{Dark,Darkest,Darker,Ambiance,Radiance}
    do
        cp -Rv "${srcdir}"/$theme/ "${pkgdir}"/usr/share/icons/
    done
}