# Maintainer: Ivan Shapovalov # Contributor: Alex Brinister pkgname=libimobiledevice-git epoch=1 pkgver=1.2.0.r51.gb78a42e pkgrel=1 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' 'openssl' 'libgcrypt' 'libplist-git' 'libusbmuxd-git') makedepends=('git') provides=('libiphone-git' 'libiphone' 'libimobiledevice') conflicts=('libiphone-git' 'libiphone' 'libimobiledevice') source=("git+https://git.libimobiledevice.org/libimobiledevice.git") sha512sums=('SKIP') pkgver() { cd libimobiledevice git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd libimobiledevice # find . -type f -exec sed -re 's|SSLv3_method\(|SSLv23_method\(|g' -i {} \; } build() { cd libimobiledevice PYTHON=/usr/bin/python2 ./autogen.sh --prefix=/usr make } package() { depends+=('usbmuxd-git') cd libimobiledevice make DESTDIR="$pkgdir" install }