updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyqt-dev / PKGBUILD
blob684058d42a50479fc3a9fef3420ef6f697899b33
1 # PyQt (Dev): Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
4 filename=pyqt
5 pkgname=${filename}-dev
6 realname=PyQt
7 pkgver=4.8.2
8 #pkgdate=620cc57dc977
9 pkgrel=1
10 pkgdesc="A set of Python bindings for the Qt toolkit.  This is the latest development snapshot."
11 arch=("i686" "x86_64")
12 url="http://www.riverbankcomputing.co.uk/software/${filename}/"
13 license=("GPL3")
14 provides=("python-qt=${pkgver}")
15 depends=("sip-dev" "python2-qt")
16 makedepends=("phonon" "python-opengl" "qt-assistant-compat")
17 optdepends=("phonon: enable audio and video in PyQt applications"
18         "python-opengl: enable OpenGL 3D graphics in PyQt applications"
19         "qscintilla: QScintilla API"
20         "qt-assistant-compat: add PyQt online help in Qt Assistant")
21 #conflicts=("${filename}" "${filename}4")
22 replaces=("${filename}4")
23 #options=(!emptydirs)
24 source=(http://www.riverbankcomputing.co.uk/static/Downloads/${realname}4/${realname}-x11-gpl-${pkgver}.tar.gz)
25 #source=(http://www.riverbankcomputing.co.uk/static/Downloads/${realname}4/${realname}-x11-gpl-snapshot-${pkgver}-${pkgdate}.tar.gz)
27 build() {
28         cd ${srcdir}/${realname}-x11-gpl-${pkgver}
29         #cd ${srcdir}/${realname}-x11-gpl-snapshot-${pkgver}-${pkgdate}
31         python3 configure.py --confirm-license --qsci-api || return 1
32         #python3 configure.py --confirm-license -v /usr/share/sip --qsci-api || return 1
34         # Thanks Gerardo for the rpath fix
35         find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g' || return 1
37         make || return 1
40 package() {
41         cd ${srcdir}/${realname}-x11-gpl-${pkgver}
42         #cd ${srcdir}/${realname}-x11-gpl-snapshot-${pkgver}-${pkgdate}
44         # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
45         make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install || return 1
47         # Removals
48         rm ${pkgdir}/usr/bin/{pylupdate4,pyrcc4,pyuic4}
49         rm ${pkgdir}/usr/lib/qt/plugins/designer/libpythonplugin.so
50         rm ${pkgdir}/usr/share/qt/qsci/api/python/PyQt4.api
53 sha1sums=('fd26aed89a6032c85a553bfd5228280ac982b85c')