maintainer="Krassy Boykinov <kboykinov@teamcentrixx.com>"
pkgname=libimobiledevice-glue
pkgver=1.3.2
pkgrel=0
pkgdesc="Library for common code of the libimobiledevice project"
url="https://libimobiledevice.org"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libplist-dev"
subpackages="$pkgname-dev"
source="https://github.com/libimobiledevice/libimobiledevice-glue/releases/download/$pkgver/libimobiledevice-glue-$pkgver.tar.bz2"

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

check() {
	make check
}

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

sha512sums="
d12b853dedec39a28c34c19dc1a2d26e81d9aba0e64d9c7ed03aa921feee5613598a30e9c51bd79d9ec840399a97091525fc5e4c5ac4b20d68ea8c96a35fc7d1  libimobiledevice-glue-1.3.2.tar.bz2
"
