1 # Contributor: Ilya Petrov <ilya.muromec@gmail.com>
6 pkgdesc="Simple flash utility for Motorola EZX Gen2 phones"
8 url="http://github.com/muromec/putusb/tree/master"
11 depends=('putusb' 'pyqt4')
20 source=(50-ezx-flash.rules)
22 md5sums=('39cb4ed67ee89d57e97f9f1e6ca26eb6')
24 _gitroot="git://github.com/muromec/putusb.git"
28 msg "Connecting to GIT server...."
30 if [[ -d $startdir/src/$_gitname ]] ; then
32 git pull origin || return 1
33 msg "The local files are updated."
35 git clone $_gitroot || return 1
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