void-packages/srcpkgs/libplist/template

44 lines
1.2 KiB
Bash

# Template file for 'libplist'
pkgname=libplist
version=1.12
revision=4
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="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2, LGPL-2.1"
homepage="http://libimobiledevice.org/"
distfiles="http://www.libimobiledevice.org/downloads/${pkgname}-${version}.tar.bz2"
checksum=0effdedcb3de128c4930d8c03a3854c74c426c16728b8ab5f0a5b6bdc0b644be
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
}
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
}
}