void-packages/srcpkgs/libplist/template

46 lines
1.3 KiB
Bash

# Template file for 'libplist'
pkgname=libplist
version=2.0.0
revision=3
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake libtool pkg-config python-devel python-Cython"
makedepends="python-devel libglib-devel libxml2-devel"
short_desc="Apple Property List library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2, LGPL-2.1"
homepage="http://libimobiledevice.org/"
distfiles="http://www.libimobiledevice.org/downloads/${pkgname}-${version}.tar.bz2"
checksum=3a7e9694c2d9a85174ba1fa92417cfabaea7f6d19631e544948dc7e17e82f602
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
sed -i "s#\$PYTHON-config#__DOES_NOT_EXIST__#" configure
}
libplist++_package() {
short_desc+=" - C++ runtime library"
pkg_install() {
vmove usr/lib/libplist++.so.*
}
}
libplist-python_package() {
lib32disabled=yes
short_desc+=" - Python bindings"
pkg_install() {
vmove usr/lib/python2.7
}
}
libplist-devel_package() {
depends="libxml2-devel libplist++>=${version}_${revision} libplist>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}