# Description: Platforme de developpement pour kde
# URL: http://www.kde.org
# Packager: NuTyX core team
# Maintainer: thierryn1 at hispeed dot ch
# Depends on: kdelibs

name=oxygen-icons
version=4.4.2
release=1
source=(http://download.kde.org/stable/$version/src/$name-$version.tar.bz2\
	NuTyXlogo.png)

build() {
	cd $name-$version
	mkdir build
	cd build
	cmake ../ -DCMAKE_INSTALL_PREFIX=$KDE_PREFIX
	make -j3
	make DESTDIR=$PKG install
	cp $SRC/NuTyXlogo.png \
	$PKG/$KDE_PREFIX/share/icons/oxygen/256x256/places
	for i in 256x256 128x128 64x64 48x48 32x32 22x22 16x16
		do rm $PKG/$KDE_PREFIX/share/icons/oxygen/$i/places/start-here-kde.png
		ln -sv ../../256x256/places/NuTyXlogo.png \
		$PKG/$KDE_PREFIX/share/icons/oxygen/$i/places/start-here-kde.png
	done
}