updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / redsn0w / PKGBUILD
blob2cebd88e316d16128d638c96ab3c9636d10467d5
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.
6 pkgname=redsn0w
7 pkgver=0.8
8 pkgrel=3
9 pkgdesc="Jailbreaking tool for iPod Touch and iPhone devices"
10 url="http://redsn0w.com/"
11 license=('custom')
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')
16 makedepends=('hd2u')
18 source=("redsn0w-linux_$pkgver.tar.bz2")
19 md5sums=('c6881fb380921025402c1670dddb4757')
21 build() {
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
29         fi
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
35         fi