1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
6 pkgdesc='Linux port of the "Spirit" jailbreak using libimobiledevice. Works on most iDevices (iPod Touch, iPhone, iPad). To jailbreak your device run "spirit"'
8 url="http://spiritjb.com/"
11 depends=('libimobiledevice')
12 makedepends=('git' 'gcc' 'make')
14 conflicts=("$pkgname")
21 md5sums=() #generate with 'makepkg -g'
23 _gitroot="git://github.com/posixninja/spirit-linux.git"
24 _gitname="$_pkgname-linux"
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"
46 mkdir -p "$pkgdir/usr/share/$_pkgname"
47 cp -r igor resources "$pkgdir/usr/share/$_pkgname"
48 cp "$_pkgname" "$pkgdir/usr/share/$_pkgname"
50 mkdir -p "$pkgdir/usr/bin"
51 echo -e '#!/bin/sh\ncd /usr/share/'$_pkgname'\n./'$_pkgname | tee "$pkgdir/usr/bin/$_pkgname" > /dev/null
52 chmod +x "$pkgdir/usr/bin/$_pkgname"