# Contributor: Matias Hernandez <msdark@archlinux.cl>
pkgname=libimobiledevice-git
pkgver=20101030
pkgrel=5
pkgdesc="libimobiledevice is a software library that talks the protocols to support iPhone and iPod Touch devices on Linux"
url="http://www.libimobiledevice.org/"
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
depends=('gnutls' 'libgcrypt' 'glib2' 'libplist' 'usbmuxd')
makedepends=('swig' 'python2')
provides=('libiphone-git' 'libiphone' 'libimobiledevice=1.2')
conflicts=('libiphone-git' 'libiphone' 'libimobiledevice')
options=(!libtool)
replaces=()
backup=()
options=()
install=
noextract=()
md5sums=() #generate with 'makepkg -g'
_gitroot="http://git.sukimashita.com/libimobiledevice.git"
_gitname="libimobiledevice"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
#
# BUILD HERE
#
PYTHON=/usr/bin/python2 ./autogen.sh --prefix=/usr --without-swig
make || return 1
make DESTDIR="$pkgdir/" install
}