1 # Contributor: Erez Zarum <erez@erezzarum.com>
6 pkgdesc="Support for iPhone tethering through USB cables."
8 url="http://giagio.com/wiki/moin.cgi/iPhoneEthernetDriver"
10 depends=('libiphone-git')
11 makedepends=('git' 'gcc' 'glib2' 'make' 'kernel26-headers' 'kernel26')
12 provides=("ipheth=$pkgver")
14 install=ipheth-git.install
16 _gitroot="git://github.com/dgiagio/ipheth.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build/ipheth-pair"
38 install -D -m755 ipheth-pair $pkgdir/lib/udev/ipheth-pair || return 1
39 install -D -m644 90-iphone-tether.rules $pkgdir/etc/udev/rules.d/90-iphone-tether.rules || return 1
41 cd "$srcdir/$_gitname-build/ipheth-driver"
43 install -D -m 755 ipheth.ko $pkgdir/lib/modules/$(uname -r)/extra/ipheth.ko || return 1