# Maintainer: Adam Eberlin < ae at adameberlin dot com > pkgname=libiphone-git pkgver=20100421 pkgrel=1 pkgdesc="libiphone is a software library that talks the native Apple USB protocols that the iPhone uses." url="http://matt.colyer.name/projects/iphone-linux/" arch=('i686' 'x86_64') license=('GPL') depends=('gnutls' 'libusb' 'fuse' 'glib2' 'libxml2' 'libxml++' 'libplist') makedepends=('gcc' 'git' 'automake' 'autoconf' 'fakeroot' 'make' 'pkgconfig') provides=('libiphone') _gitroot="git://github.com/mcolyer/libiphone.git" _gitname="libiphone" build() { cd ${srcdir} msg "Connecting to GIT server...." if [ -d ${srcdir}/$_gitname ] ; then cd $_gitname && git pull origin msg "Local repository updated." else git clone $_gitroot $_gitname fi msg "GIT checkout done or server timeout" msg "Removing old build directory..." rm -Irf ${srcdir}/$_gitname-build msg "Creating new build directory..." cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build cd ${srcdir}/$_gitname-build msg "Applying patches..." # patch -p1 < ${startdir}/patchfile.diff patch -p1 < ${startdir}/fix-gnutls-deps.diff msg "Starting make..." ./autogen.sh --prefix=/usr ./configure --prefix=/usr make || return 1 make DESTDIR=${pkgdir} install || return 1 # libiphone-initconf # (as the user you intend to user the library) }