1 # Contributor: LUO, Jian <jian (dot) luo (dot) cn (at) gmail (dot) com>
3 pkgname=vodafone-mccd-fedora
6 pkgdesc="Vodafone Mobile Connect Card Driver, a GPRS/UMTS/HSDPA(3G) device manager"
8 license=('GPL2' 'LGPL2' 'BSD' 'MIT')
9 url="https://forge.vodafonebetavine.net/projects/vodafonemobilec/"
10 depends=('dbus-python' 'twisted' 'python-pyserial' 'wvdial' 'python-notify' 'gnome-python-extras' 'hal' 'python-pytz' 'pygtk' 'pyxml' 'lsb-release')
11 makedepends=('rpmextract')
12 install=vodafone-mccd-fedora.install
13 source=(https://forge.betavine.net/frs/download.php/441/vodafone-mobile-connect-$pkgver.noarch.rpm
15 md5sums=('d991b721d11afdf0b0fff03aa3fc2a6c'
16 'f0312a28549b54d17e80e4fc283997c4')
19 mkdir -p $startdir/src/$pkgname-$pkgver
20 cd $startdir/src/$pkgname-$pkgver
21 rpmextract.sh $startdir/src/vodafone-mobile-connect-$pkgver.noarch.rpm
22 patch -Np0 -i $startdir/src/gentoo-arch.patch || return 1
23 cp -av $startdir/src/$pkgname-$pkgver/* $startdir/pkg
24 chmod a+x $startdir/pkg/usr/bin/vmc-cli-client.py
25 mv $startdir/pkg/usr/lib/python2.5 $startdir/pkg/usr/lib/python2.6
26 cd $startdir/pkg/usr/lib/python2.6/site-packages
27 mv vodafone_mobile_connect-1.99.17-py2.5.egg-info vodafone_mobile_connect-1.99.17-py2.6.egg-info