# Description: Pour écrire des applications KDE dans différents langages
# URL: http://www.kde.org
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: ruby, kdepim-runtime, kdegraphics, qscintilla

name=kdebindings
version=4.5.3
release=2
source=(ftp://ftp.kde.org/pub/kde/stable/$version/src/$name-$version.tar.bz2
	http://nutyx.meticul.eu/files/patchs/$name/fix-pyqt4-build.patch )

build() {
	unset MAKEFLAGS
	cd $name-$version

	patch -Np0 -i ../fix-pyqt4-build.patch

	mkdir build
 	cd build

	cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
                -DCMAKE_BUILD_TYPE=Release
	make
	make DESTDIR=$PKG install
}