extra/pyqt to 4.9.6-2

This commit is contained in:
Jason Plum 2013-03-01 16:34:11 -05:00
parent bc3f5478b5
commit 598194a24f

View file

@ -9,11 +9,11 @@
pkgbase=pyqt
pkgname=('pyqt-common' 'pyqt' 'python2-pyqt')
pkgver=4.9.6
pkgrel=1
pkgrel=2
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"
"PyQt4-4.7.3-qreal_float_support.patch")
@ -21,6 +21,8 @@ md5sums=('514e1f9597771dc732ba75ba9fa5c6b6'
'c493d8ea8e3199d649b60eeb45e07aec')
build() {
. /etc/profile.d/qt4.sh
cd "${srcdir}"/PyQt-x11-gpl-${pkgver}
patch -p1 -i "${srcdir}"/PyQt4-4.7.3-qreal_float_support.patch
@ -57,7 +59,7 @@ package_pyqt-common(){
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(){
@ -73,7 +75,7 @@ package_pyqt(){
# 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(){
@ -94,6 +96,6 @@ package_python2-pyqt(){
# 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
}