updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / vodafone-mccd / PKGBUILD
blobd6d37cc66dc6a966aaadea57bdf49377285701c9
1 # Mantainer: M0Rf30
2 pkgname=vodafone-mccd
3 pkgver=20120107
4 pkgrel=1
5 pkgdesc="Vodafone Mobile Connect Card Driver, a GPRS/UMTS/HSDPA(3G) device manager (meh fork)"
6 arch=('i686' 'x86_64')
7 license=('GPL2' 'LGPL2' 'BSD' 'MIT')
8 url="https://github.com/meh/vodafone-mobile-connect"
9 depends=('usb_modeswitch' 'python2-pytz' 'python-pysqlite' 'ozerocdoff' 'dbus-python' 'twisted' 'python-pyserial' 'wvdial' 'pyasn1' 'python-notify' 
10 'gnome-python-extras' 'pygtk' 'pyxml' 'lsb-release' 'python2-libgnome' 'gnome-python-desktop' 'hal')
11 install=vodafone-mccd.install
12 _gitroot="git://github.com/meh/vodafone-mobile-connect.git"
13 _gitname="vodafone-mobile-connect"
15 build() {
16         msg "Connecting to GIT server...."
18         
19         [ -d $_gitname ] && {
20                 cd $_gitname
21                 git pull origin
22                 cd ..
24                 msg "Local files have been updated."
25         } || {
26                 git clone $_gitroot
27         }
29         msg "GIT checkout done or server timeout"
31         rm -rf $_gitname-build
32         git clone $_gitname $_gitname-build
33         cd $_gitname-build
35         msg "Starting make..."
36         python2 setup.py install --root=$pkgdir
37         echo "Select your current timezone"
38         sleep 2
39         mkdir -p $pkgdir/etc
40         tzselect > $pkgdir/etc/timezone