1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
2 _pkgname=idevicerestore
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"
44 #sed -i -e 's/\/usr\/local\//\/usr\//g' src/Makefile.am
45 ./autogen.sh --prefix=/usr
46 ./configure --prefix=/usr
47 make libirecovery_CFLAGS="-I/usr/include" libirecovery_LIBS="-L/usr/lib -lirecovery -lusb-1.0" || return 1
48 make DESTDIR=$pkgdir install || return 1