extra/pyqt to 4.10-1

This commit is contained in:
Kevin Mihelich 2013-03-07 13:47:36 +00:00
parent c30cd51f86
commit 921cc39125

View file

@ -8,8 +8,8 @@
pkgbase=pyqt
pkgname=('pyqt-common' 'pyqt' 'python2-pyqt')
pkgver=4.9.6
pkgrel=2
pkgver=4.10
pkgrel=1
arch=('i686' 'x86_64')
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
license=('GPL')
@ -17,12 +17,10 @@ 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")
md5sums=('514e1f9597771dc732ba75ba9fa5c6b6'
md5sums=('b5953e96d0f82d322d0cba008163321e'
'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
@ -32,11 +30,15 @@ build() {
cd "${srcdir}/PyQt-x11-gpl-${pkgver}"
python configure.py \
--confirm-license \
--qsci-api
--qsci-api \
-q /usr/bin/qmake-qt4
# Thanks Gerardo for the rpath fix
find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
# Ugly workaround to fix build
sed -i 's|/usr/include/qt4/phonon|/usr/include/phonon|' phonon/Makefile
make
### Python2 version ###
@ -44,16 +46,21 @@ build() {
python2 configure.py \
--confirm-license \
-v /usr/share/sip \
--qsci-api
--qsci-api \
-q /usr/bin/qmake-qt4
# Thanks Gerardo for the rpath fix
find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
# Ugly workaround to fix build
sed -i 's|/usr/include/qt4/phonon|/usr/include/phonon|' phonon/Makefile
make
}
package_pyqt-common(){
pkgdesc="Common PyQt files shared between pyqt and python2-pyqt"
depends=('qt4')
cd "${srcdir}/PyQt-x11-gpl-${pkgver}"
make -C pyrcc DESTDIR="${pkgdir}" install