void-packages/srcpkgs/libimobiledevice/template
Nathan Owens ce0d446279 libimobiledevice: revbump against libusbmuxd
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
2019-11-24 13:20:08 +01:00

40 lines
1.2 KiB
Bash

# Template file for 'libimobiledevice'
pkgname=libimobiledevice
version=1.2.0
revision=14
build_style=gnu-configure
hostmakedepends="automake libtool pkgconf python-Cython"
makedepends="python-devel libglib-devel libressl-devel libusb-devel
libplist-devel libusbmuxd-devel"
short_desc="Library to communicate with Apple devices"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://github.com/libimobiledevice/libimobiledevice"
distfiles="https://github.com/libimobiledevice/libimobiledevice/archive/${version}.tar.gz"
checksum=8ba1ea817691b3548b83371f8ec22d73d1e37f8fda7c899ac9c7121d924ca830
CFLAGS="-I/usr/include/python3.6"
if [ "$CROSS_BUILD" ]; then
configure_args="ac_cv_sys_file_offset_bits=yes ac_cv_sys_large_file=yes"
fi
pre_configure() {
sed -i 's,SSLv3_,SSLv23_,g' src/idevice.c
sed -i 's,-L$(libdir),,g' cython/Makefile.am
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
export PYTHON_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython2.7"
autoreconf -fi
}
libimobiledevice-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}