1 # PyQt (Dev): Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
5 pkgname=${filename}-dev
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}/"
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")
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)
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
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
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')