1 # Maintainer: Devin Cofer <ranguvar@archlinux.us>
3 ### NOTE: The redsn0w-linux_$pkgver.tar.bz2 package must be found yourself, and at your own risk --
4 ### it may be illegal in your country of residence. Do not ask how/where to get it.
9 pkgdesc="Jailbreaking tool for iPod Touch and iPhone devices"
10 url="http://redsn0w.com/"
12 arch=('i686' 'x86_64')
14 depends=('wxgtk>=2.8' 'openssl' 'libusb' 'bzip2' 'curl' 'zlib' 'libpng')
15 [ $CARCH == x86_64 ] && depends=('lib32-wxgtk>=2.8' 'lib32-openssl' 'lib32-libusb' 'lib32-bzip2' 'lib32-curl' 'lib32-zlib' 'lib32-libpng')
18 source=("redsn0w-linux_$pkgver.tar.bz2")
19 md5sums=('c6881fb380921025402c1670dddb4757')
22 cd "$pkgname-linux_$pkgver"
24 dos2unix license.txt || return 1
25 install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
27 if [ $CARCH = i686 ]; then
28 install -Dm755 redsn0w "$pkgdir/usr/bin/redsn0w" || return 1
31 if [ $CARCH = x86_64 ]; then
32 install -Dm755 redsn0w "$pkgdir/opt/$pkgname/redsn0w" || return 1
33 mkdir -p "$pkgdir/usr/bin/"
34 ln -s "$pkgdir/opt/$pkgname/redsn0w" "$pkgdir/usr/bin/redsn0w" || return 1