1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
2 _pkgname=ideviceactivate
6 pkgdesc="Restores firmware and filesystem to iPhone/iPod Touch"
8 url="http://github.com/posixninja/$_pkgname"
11 depends=('usbmuxd' 'libirecovery' 'libimobiledevice>=1.1.0')
13 provides=("$_pkgname")
14 conflicts=("$_pkgname")
15 replaces=("$_pkgname")
21 md5sums=() #generate with 'makepkg -g'
23 _gitroot="git://github.com/posixninja/$_pkgname.git"
28 msg "Connecting to GIT server...."
30 if [ -d $_gitname ] ; then
31 cd $_gitname && git pull origin
32 msg "The local files are updated."
34 git clone $_gitroot $_gitname
37 msg "GIT checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_gitname-build"
41 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
45 mkdir -p $pkgdir/usr/bin
46 cp src/$_pkgname $pkgdir/usr/bin