void-packages/srcpkgs/libplist/template
Nathan Owens 093dcba0da libplist: update to 2.1.0
Change from pkg-config to pkgconf

Signed-off-by: Nathan Owens <ndowens04@gmail.com>
2019-11-24 13:20:08 +01:00

45 lines
1.3 KiB
Bash

# Template file for 'libplist'
pkgname=libplist
version=2.1.0
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake libtool pkgconf python-devel python-Cython"
makedepends="python-devel libglib-devel libxml2-devel"
short_desc="Apple Property List library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://github.com/libimobiledevice/libplist/"
distfiles="https://github.com/libimobiledevice/libplist/archive/${version}.tar.gz"
checksum=4b33f9af3f9208d54a3c3e1a8c149932513f451c98d1dd696fe42c06e30b7f03
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
}
}