# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libusbmuxd
pkgver=1.0.10
pkgrel=0
pkgdesc="USB Multiplex Daemon"
url="http://marcansoft.com/blog/iphonelinux/usbmuxd/"
arch="all"
license="LGPL-2.1"
depends="libplist libusb"
makedepends="libplist-dev libusb-dev"
subpackages="$pkgname-dev"
source="http://www.libimobiledevice.org/downloads/libusbmuxd-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver

check() {
	cd "$builddir"
	make check
}

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}

sha512sums="180cde2e9d0860d07d29813e68abf8ca807f75e98424b50acfc1ce941ba4260922959e1047a7d2bc754470c08ed55d0a15c9367487bd41c635a52b4fbf8ff535  libusbmuxd-1.0.10.tar.bz2"
