void-packages/srcpkgs/libimobiledevice/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

32 lines
1 KiB
Bash

# Template file for 'libimobiledevice'
pkgname=libimobiledevice
version=1.2.0
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config python-devel"
makedepends="python-devel libglib-devel libressl-devel libusb-devel libplist-devel libusbmuxd-devel"
short_desc="A library to communicate with Apple devices"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2,LGPL-2.1"
homepage="http://www.libimobiledevice.org/"
distfiles="http://www.libimobiledevice.org/downloads/${pkgname}-${version}.tar.bz2"
checksum=786b0de0875053bf61b5531a86ae8119e320edab724fc62fe2150cc931f11037
pre_configure() {
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
}
}