summaryrefslogtreecommitdiffstats
path: root/extra/pyqt/Pkgfile
blob: 6fc1d2a02c766dbce698c84c20f2cc426e37fdf0 (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
# Description: Connecteur python pour qt4 
# URL: http://www.riverbankcomputing.co.uk/software/pyqt/intro
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: sip, qscintilla, qt, phonon

name=pyqt
version=4.8.2
release=1
source=(http://www.riverbankcomputing.com/static/Downloads/PyQt4/PyQt-x11-gpl-$version.tar.gz
	fix-stackedwidget-bug.patch)

#	http://nutyx.meticul.eu/files/patchs/$name/fix-kdebindings-4.5.2.patch)

build() {
	cd PyQt-x11-gpl-$version
	patch -Np1 -i ../fix-stackedwidget-bug.patch

	echo yes | python2 configure.py -b /usr/bin \
		-d /usr/lib/python2.7/site-packages \
		-v /usr/share/sip \
    		--qsci-api
	
	find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
	make
	make DESTDIR=$PKG install
}