updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / pyqt-mobility / PKGBUILD
blob3ce6b1bcc7b367491e63ba151dba3a95148cdb57
1 # $Id: PKGBUILD 135252 2011-08-11 16:55:55Z miguel angel $
2 # Maintainer: Miguel Angel Rasero <info@linos.es>
3 # modified copy-paste from official PyQt4 Arch package
5 pkgname=('pyqt-mobility')
6 pkgver=1.0.1
7 pkgrel=2
8 arch=('i686' 'x86_64')
9 url="http://riverbankcomputing.co.uk/software/pyqtmobility/intro"
10 license=('GPL')
11 makedepends=('qt' 'python-sip' 'dbus-python' 'python2-sip' 'phonon'
12              'python-opengl' 'qt-assistant-compat')
13 source=("http://riverbankcomputing.co.uk/static/Downloads/PyQtMobility/PyQtMobility-gpl-${pkgver}.tar.gz")
14 md5sums=('fbec98d04f6256b76f81a067bcaf4bc1')
16 build() {
17   cd "${srcdir}"
19   cd "${srcdir}/PyQtMobility-gpl-${pkgver}"
20   python configure.py \
21     -e QtContacts \
22     -e QtLocation \
23     -e QtMultimediaKit \
24     -e QtPublishSubscribe \
25     -e QtSensors \
26     -e QtServiceFramework \
27     -e QtSystemInfo \
28     -e QtVersit
30   # Thanks Gerardo for the rpath fix
31   find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
33   make
36 package_pyqt-mobility(){
37   pkgdesc="A set of Python bindings for the Qt Mobility toolkit"
38   depends=('qt' 'python-sip' 'pyqt' 'qt-mobility')
39   
40   cd "${srcdir}/PyQtMobility-gpl-${pkgver}"
41   # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
42   make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install