2010-11-28 19:36:26 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
pkgname=pyqt
|
2011-01-29 23:04:39 +08:00
|
|
|
pkgver=4.8.3
|
2011-01-06 08:14:56 +08:00
|
|
|
pkgrel=1
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgdesc="A set of Python bindings for the Qt toolkit"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
|
|
|
|
license=('GPL')
|
2010-11-28 19:36:26 +08:00
|
|
|
depends=('sip' 'qt' 'dbus-python')
|
|
|
|
makedepends=('phonon' 'python-opengl' 'qt-assistant-compat')
|
|
|
|
optdepends=('phonon: enable audio and video in PyQt applications'
|
|
|
|
'python-opengl: enable OpenGL 3D graphics in PyQt applications'
|
|
|
|
'qscintilla: QScintilla API'
|
|
|
|
'qt-assistant-compat: add PyQt online help in Qt Assistant')
|
2010-03-14 23:48:48 +08:00
|
|
|
provides=('pyqt4')
|
|
|
|
replaces=('pyqt4')
|
|
|
|
conflicts=('pyqt4')
|
2010-11-28 19:36:26 +08:00
|
|
|
source=("http://riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-${pkgver}.tar.gz")
|
2011-01-29 23:04:39 +08:00
|
|
|
md5sums=('d54fd1c37a74864faf42709c8102f254')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
2010-11-28 19:36:26 +08:00
|
|
|
cd ${srcdir}/PyQt-x11-gpl-${pkgver}
|
|
|
|
|
|
|
|
python2 configure.py \
|
|
|
|
--confirm-license \
|
|
|
|
-v /usr/share/sip \
|
|
|
|
--qsci-api
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
# Thanks Gerardo for the rpath fix
|
|
|
|
find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
|
|
|
|
|
2010-11-28 19:36:26 +08:00
|
|
|
make
|
2010-03-14 23:48:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package(){
|
2010-11-28 19:36:26 +08:00
|
|
|
cd ${srcdir}/PyQt-x11-gpl-${pkgver}
|
2010-03-14 23:48:48 +08:00
|
|
|
# INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
|
2010-11-28 19:36:26 +08:00
|
|
|
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
|
2010-12-14 14:44:01 +08:00
|
|
|
}
|