summaryrefslogtreecommitdiffstats
path: root/kde/kdebindings/Pkgfile
blob: def28513e9587cd7dcf5f00011af4ac473e76969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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.4
release=1
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() {
	if [ "`uname -m`" == "x86_64" ]; then export CFLAGS="$CFLAGS+'-fPIC'"
        fi

	cd $name-$version
	patch -Np0 -i ../fix-pyqt4-build.patch
	mkdir build
 	cd build

        cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
                -DCMAKE_BUILD_TYPE=Release \
		-DBUILD_falcon=OFF \
                -DBUILD_java=OFF \
                -DBUILD_perl=OFF \
                -DBUILD_php=OFF \
                -DWITH_PolkitQt=OFF

	make DESTDIR=$PKG install
}