Date: Monday, February 25, 2013 @ 18:50:13 Author: andrea Revision: 178603
Rename pyqt as pyqt4 Added: pyqt4/ pyqt4/repos/ pyqt4/trunk/ Modified: pyqt4/trunk/PKGBUILD ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) Modified: pyqt4/trunk/PKGBUILD =================================================================== --- pyqt/trunk/PKGBUILD 2013-02-25 17:19:53 UTC (rev 178602) +++ pyqt4/trunk/PKGBUILD 2013-02-25 17:50:13 UTC (rev 178603) @@ -3,19 +3,21 @@ # Contributor: Douglas Soares de Andrade <[email protected]> # Contributor: riai <[email protected]> Ben <[email protected]> -pkgbase=pyqt -pkgname=('pyqt-common' 'pyqt' 'python2-pyqt') +pkgbase=pyqt4 +pkgname=('pyqt4-common' 'pyqt4' 'python2-pyqt4') pkgver=4.9.6 pkgrel=1 arch=('i686' 'x86_64') url="http://riverbankcomputing.co.uk/software/pyqt/intro" license=('GPL') -makedepends=('qt' 'python-sip' 'python-dbus' 'python2-sip' 'phonon' 'mesa' +makedepends=('qt4' 'python-sip' 'python-dbus' 'python2-sip' 'phonon' 'mesa' 'python2-opengl' 'qt-assistant-compat' 'qtwebkit' 'python2-dbus') -source=("http://downloads.sourceforge.net/${pkgbase}/PyQt-x11-gpl-${pkgver}.tar.gz") +source=("http://downloads.sourceforge.net/pyqt/PyQt-x11-gpl-${pkgver}.tar.gz") md5sums=('514e1f9597771dc732ba75ba9fa5c6b6') build() { + . /etc/profile.d/qt4.sh + cp -r PyQt-x11-gpl-${pkgver} Py2Qt-x11-gpl-${pkgver} cd PyQt-x11-gpl-${pkgver} @@ -41,22 +43,28 @@ make } -package_pyqt-common(){ +package_pyqt4-common(){ pkgdesc="Common PyQt files shared between pyqt and python2-pyqt" + provides=("pyqt-common=${pkgver}") + conflicts=('pyqt-common') + replaces=('pyqt-common') cd PyQt-x11-gpl-${pkgver} make -C pyrcc DESTDIR="${pkgdir}" install make -C pylupdate DESTDIR="${pkgdir}" install - install -Dm644 PyQt4.api "${pkgdir}"/usr/share/qt/qsci/api/python/PyQt4.api + install -Dm644 PyQt4.api "${pkgdir}"/usr/share/qt4/qsci/api/python/PyQt4.api } -package_pyqt(){ - pkgdesc="A set of Python 3.x bindings for the Qt toolkit" - depends=('qtwebkit' 'python-sip' 'python-dbus' 'pyqt-common') +package_pyqt4(){ + pkgdesc="A set of Python 3.x bindings for the Qt4 toolkit" + depends=('qtwebkit' 'python-sip' 'python-dbus' 'pyqt4-common') optdepends=('phonon: enable audio and video in PyQt applications' 'qscintilla: QScintilla API' 'qt-assistant-compat: add PyQt online help in Qt Assistant') + provides=("pyqt=${pkgver}") + conflicts=('pyqt') + replaces=('pyqt') cd PyQt-x11-gpl-${pkgver} # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR @@ -64,17 +72,19 @@ # Provided by pyqt-common rm "${pkgdir}"/usr/bin/{pylupdate4,pyrcc4} - rm "${pkgdir}"/usr/share/qt/qsci/api/python/PyQt4.api + rm "${pkgdir}"/usr/share/qt4/qsci/api/python/PyQt4.api } -package_python2-pyqt(){ - pkgdesc="A set of Python 2.x bindings for the Qt toolkit" - depends=('qtwebkit' 'python2-sip' 'python2-dbus' 'pyqt-common') +package_python2-pyqt4(){ + pkgdesc="A set of Python 2.x bindings for the Qt4 toolkit" + depends=('qtwebkit' 'python2-sip' 'python2-dbus' 'pyqt4-common') optdepends=('phonon: enable audio and video in PyQt applications' 'python2-opengl: enable OpenGL 3D graphics in PyQt applications' 'qscintilla: QScintilla API' 'qt-assistant-compat: add PyQt online help in Qt Assistant') - provides=('python2-qt') + provides=("python2-pyqt=${pkgver}") + conflicts=('python2-pyqt') + replaces=('python2-pyqt') cd Py2Qt-x11-gpl-${pkgver} # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR @@ -85,6 +95,6 @@ # Provided by pyqt rm "${pkgdir}"/usr/bin/{pylupdate4,pyrcc4} - rm "${pkgdir}"/usr/lib/qt/plugins/designer/libpythonplugin.so - rm "${pkgdir}"/usr/share/qt/qsci/api/python/PyQt4.api + rm "${pkgdir}"/usr/lib/qt4/plugins/designer/libpythonplugin.so + rm "${pkgdir}"/usr/share/qt4/qsci/api/python/PyQt4.api }
