# Maintainer: Frikilinux <frikilinux at frikilinux.com.ar>
# Contributor: graysky <graysky AT archlinux DOT us>
# Contributor: Samsagax <samsagax AT gmail DOT com>
# Contributor: simongmzlj <simongmzlj AT gmail DOT com>

pkgname=faenza-icon-theme
pkgver=1.2
pkgrel=2
pkgdesc="Icon theme designed for Equinox GTK theme"
url="http://gnome-look.org/content/show.php/Faenza?content=128143"
license=('GPL3')
arch=('any')
makedepends=()
options=(!strip)
source=("http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/${pkgname}/${pkgname}_${pkgver}.tar.gz")
sha256sums=('171332a31993be9aacd1e270b78af75e22c02e0c744b64b2efa6c7d4fca89016')

package() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p "${pkgdir}"/usr/share/icons
cp -rf Faenza{,-Dark,-Darkest,-Darker} "${pkgdir}"/usr/share/icons/

# set the Arch Linux Dristributor 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}/"
ln -sf distributor-logo{-archlinux,}.png
ln -sf start-here{-archlinux,}.png
done;
cd "${pkgdir}/usr/share/icons/${theme}/places/scalable/"
ln -sf distributor-logo{-archlinux,}.svg
ln -sf start-here{-archlinux,}.svg
ln -sf start-here{-archlinux-symbolic,-symbolic}.svg
done;
}