# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'ideviceinstaller'
setvar pkgver = '1.1.0'
setvar pkgrel = '0'
setvar pkgdesc = ""Manage Applications of an iPhone or iPod Touch""
setvar url = ""http://www.libimobiledevice.org/""
setvar arch = ""all""
setvar license = ""LGPL2.1""
setvar depends = """"
setvar depends_dev = """"
setvar makedepends = ""$depends_dev libimobiledevice-dev libzip-dev""
setvar install = """"
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://www.libimobiledevice.org/downloads/$pkgname-$pkgver.tar.bz2""

setvar _builddir = ""$srcdir"/$pkgname-$pkgver"
proc prepare {
	local i
	cd $_builddir
	for i in $source {
		case (i) {
		*.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1}
		}
	}
	sed -i -e 's:-Werror -g::' configure || return 1
}

proc build {
	cd $_builddir
	./configure --prefix=/usr
	make || return 1
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install
}

setvar md5sums = ""20bd74111c1e8bf7ce393f8f0919263c  ideviceinstaller-1.1.0.tar.bz2""
setvar sha256sums = ""0821b8d3ca6153d9bf82ceba2706f7bd0e3f07b90a138d79c2448e42362e2f53  ideviceinstaller-1.1.0.tar.bz2""
setvar sha512sums = ""8bf5dc30b8fa2f0c171ec3705db8d8d143d2520b2875fc05d9d325bd4f1ffdf29230557e57f3e824654ab3bb71bbaf9019aa573d4b1cce29a9c75bf15024d623  ideviceinstaller-1.1.0.tar.bz2""