#Packager: George Vlahavas <vlahavas~at~gmail~dot~dom>

pkgname=simple-icon-theme
pkgver=2.6.5
pkgrel=1gv
arch=noarch
source=(http://simplicity-desktop-theme.googlecode.com/files/Simple-2.6.5.tar.bz2)
docs=("authors" "gpl" "lgpl")
url=http://gnome-look.org/content/show.php/Simple?content=99470

doinst() {
if [ -x usr/bin/gtk-update-icon-cache ]; then
	for i in /usr/share/icons/*;do
		gtk-update-icon-cache -f $i
	done
fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"simple-icon-theme (an icon theme that matches the oxygen KDE4 theme)"
"The simple icon theme is an icon theme that can be used in GTK+2"
"applications that matches the oxygen KDE4 icon theme."
)


build() {
	cd $startdir/src/Simple
	
	mkdir -p $startdir/pkg/usr/share/icons/simple
	cp -r ./* $startdir/pkg/usr/share/icons/simple/

	# They are all png files in there!!!
	mv $startdir/pkg/usr/share/icons/simple/scalable $startdir/pkg/usr/share/icons/simple/128x128
	sed -i "s|scalable/|128x128/|g" $startdir/pkg/usr/share/icons/simple/index.theme

	( cd $startdir/pkg/usr/share/icons/simple/128x128/mimetypes; ln -s package-x-generic.png gnome-mime-application-x-xz-compressed-tar.png )

	find $startdir/pkg -type d -exec chmod 755 {} \;
	find $startdir/pkg -type f -exec chmod 644 {} \;
}