# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libusbmuxd
pkgver=2.0.2
pkgrel=4
pkgdesc="USB Multiplex Daemon"
url="https://marcansoft.com/blog/iphonelinux/usbmuxd/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libplist-dev libusb-dev automake autoconf libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-progs"
source="$pkgname-$pkgver.tar.gz::https://github.com/libimobiledevice/libusbmuxd/archive/$pkgver.tar.gz
	"

prepare() {
	default_prepare
	NOCONFIGURE=1 ./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--disable-static \
		--prefix=/usr
	make
}

check() {
	make check
}

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

progs() {
	pkgdesc="$pkgdesc - utilities"
	amove usr/bin
}

sha512sums="
9b64d5d47f958566432d5c94c51cc42bff0bb700c1d265ac507cfa31ac164fd52526725e9b1686922305c7ea4d3a0df6d469a8cf9a360bd9c22f55f5c8339500  libusbmuxd-2.0.2.tar.gz
"
