# Maintainer: JokerBoy <jokerboy at punctweb dot ro>

pkgname=kfaenza-icon-theme
pkgver=0.8.7
pkgrel=1
pkgdesc="Faenza icon theme for KDE4"
url="http://kde-look.org/content/show.php?content=143890"
license=('GPL')
arch=('any')
depends=('kdebase-workspace')
source=("${pkgname}-${pkgver}.tar.gz::http://ompldr.org/vYXRrYw")
sha256sums=('4724eac837564d6e36c9778cb36bbdc5135af1bc3733d25ce9335c95945cb576')

package() {
cd "${srcdir}"
mkdir -p "${pkgdir}/usr/share/icons"
cp -Rf 'KFaenza' "${pkgdir}/usr/share/icons/"

# set the Arch Linux Dristributor logo
for size in 16 22 32 48 64 128 256; do
cd "${pkgdir}/usr/share/icons/KFaenza/places/${size}"
ln -sf archlinux-logo.png distributor-logo.png
done;

# set the Arch Linux start menu logo
for size in 16 22 32 48 64 128 256; do
cd "${pkgdir}/usr/share/icons/KFaenza/places/${size}"
ln -sf start-here-archlinux.png start-here-kde.png
done;

cd "${pkgdir}/usr/share/icons/KFaenza/places/scalable"
ln -sf archlinux-logo.svg distributor-logo.svg

chown -R root:root "${pkgdir}/usr"
find "${pkgdir}" -type f -name '.directory' -delete
}