37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'libimobiledevice'
|
|
pkgname=libimobiledevice
|
|
version=1.2.0
|
|
revision=17
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkgconf python3-Cython"
|
|
makedepends="python3-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
|
|
|
|
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/python${py3_ver}"
|
|
export PYTHON_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}"
|
|
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
|
|
}
|
|
}
|