# Maintainer: Ivan Shapovalov # Contributor: Matthew Bauer pkgname=idevicerestore-git epoch=1 pkgver=1.0.0.r134.g163a164 pkgrel=1 pkgdesc="Restore/upgrade firmware of iOS devices" arch=('i686' 'x86_64') url="http://www.libimobiledevice.org" license=('LGPL3') depends=('libzip' 'openssl' 'curl' 'libimobiledevice-glue-git' 'libplist-git' 'libimobiledevice-git' 'libirecovery-git') makedepends=('git') source=("git+https://github.com/libimobiledevice/idevicerestore" '0001-configure.ac-check-for-pthreads.patch' '0002-configure.ac-accept-unreleased-libirecovery-1.0-1.0..patch') sha256sums=('SKIP' 'd7fcc4e46a175d309298bd95d330c027fcca7dba3226f3e1b802c8ebe8d8ed15' 'b1348ccc86d0ccbbc5bf6fa4e2027b0303a52673431ace50cc1e0ef8a6171305') pkgver() { cd idevicerestore git describe --long --tags | sed 's/[^-]*-g/r&/;s/-/./g' } prepare() { cd idevicerestore for p in "${srcdir}"/*.patch; do patch -Np1 -i "${p}" done NOCONFIGURE=1 ./autogen.sh } build() { cd idevicerestore ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var #sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # not needed anymore (libtool honors $LDFLAGS now) make } check() { cd idevicerestore make check } package() { cd idevicerestore make DESTDIR="$pkgdir" install }