updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / qputusb / PKGBUILD
blobd8c3a8b565f5374d154ac5229590c11f5d114cd4
1 # Contributor: Ilya Petrov <ilya.muromec@gmail.com>
3 pkgname=qputusb
4 pkgver=20090816
5 pkgrel=4
6 pkgdesc="Simple flash utility for Motorola EZX Gen2 phones"
7 arch=('i686' 'x86_64')
8 url="http://github.com/muromec/putusb/tree/master"
9 license=('GPL')
10 groups=()
11 depends=('putusb' 'pyqt4')
12 makedepends=('git')
13 optdepends=()
14 provides=()
15 conflicts=()
16 replaces=()
17 backup=()
18 options=()
19 install=
20 source=(50-ezx-flash.rules)
21 noextract=()
22 md5sums=('39cb4ed67ee89d57e97f9f1e6ca26eb6')
24 _gitroot="git://github.com/muromec/putusb.git"
25 _gitname="putusb"
27 build() {
28   msg "Connecting to GIT server...."
30   if [[ -d $startdir/src/$_gitname ]] ; then
31     cd $_gitname
32     git pull origin || return 1
33     msg "The local files are updated."
34   else
35     git clone $_gitroot || return 1
36   fi
38   msg "GIT checkout done"
40   msg "Downloading gen-blob"
42   cd $startdir/src/$_gitname
44   [ -e gen-blob ] && rm gen-blob
45   wget http://people.openezx.org/muromec/putusb/gen-blob
47   install -d $startdir/pkg/usr/bin || return 1
48   install -m 755 qputusb.py $startdir/pkg/usr/bin/qputusb || return 1
50   install -d $startdir/pkg/lib/firmware/ezx/ || return 1
51   install gen-blob $startdir/pkg/lib/firmware/ezx/gen-blob || return 1
53   install -d $startdir/pkg/etc/udev/rules.d || return 1
54   install ../50-ezx-flash.rules $startdir/pkg/etc/udev/rules.d/50-ezx-flash.rules || return 1
56   rm gen-blob