1 # Maintainer: Adam Eberlin < ae at adameberlin dot com >
6 pkgdesc="libiphone is a software library that talks the native Apple USB protocols that the iPhone uses."
7 url="http://libimobiledevice.org/"
10 depends=('gnutls' 'libusb' 'fuse' 'glib2' 'libxml2' 'libxml++' 'libplist' 'usbmuxd')
11 makedepends=('gcc' 'git' 'automake' 'autoconf' 'fakeroot' 'make' 'pkgconfig')
12 provides=('libiphone')
14 _gitroot="git://github.com/mcolyer/libiphone.git"
20 msg "Connecting to GIT server...."
22 if [ -d ${srcdir}/$_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "Local repository updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
31 msg "Removing old build directory..."
32 rm -Irf ${srcdir}/$_gitname-build
34 msg "Creating new build directory..."
35 cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
37 cd ${srcdir}/$_gitname-build
39 # msg "Applying patches..."
40 # patch -p1 < ${startdir}/patchfile.diff
42 msg "Starting make..."
44 [[ "${CARCH}" == 'x86_64' ]] && export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib64/pkgconfig/
46 ./autogen.sh --prefix=/usr
47 ./configure --prefix=/usr
49 msg "Starting make..."
51 make DESTDIR=${pkgdir} install || return 1
53 # libiphone-initconf # (as the user you intend to user the library)