2010-11-28 19:36:26 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-09-29 05:37:22 +08:00
|
|
|
# maintainer abveritas[at]chakra-project[dot]org>
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
pkgname=pyqt
|
2012-12-11 06:42:25 +08:00
|
|
|
pkgver=4.9.6
|
2011-04-11 03:19:29 +08:00
|
|
|
pkgrel=1
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgdesc="A set of Python bindings for the Qt toolkit"
|
2012-11-05 11:30:13 +08:00
|
|
|
arch=('x86_64')
|
2010-03-14 23:48:48 +08:00
|
|
|
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
|
|
|
|
license=('GPL')
|
2012-09-29 10:17:28 +08:00
|
|
|
depends=('sip' 'qtwebkit' 'dbus-python')
|
2012-11-05 11:30:13 +08:00
|
|
|
makedepends=('phonon' 'python-opengl' 'qt-assistant-compat' 'mesa')
|
2010-11-28 19:36:26 +08:00
|
|
|
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')
|
2012-10-02 01:17:32 +08:00
|
|
|
source=("http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-${pkgver}/PyQt-x11-gpl-${pkgver}.tar.gz")
|
2012-12-11 06:42:25 +08:00
|
|
|
md5sums=('514e1f9597771dc732ba75ba9fa5c6b6')
|
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
|
|
|
}
|