49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Template file for 'libplist'
|
|
pkgname=libplist
|
|
version=2.2.0
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="automake libtool pkgconf python3 python3-Cython"
|
|
makedepends="python3-devel libglib-devel libxml2-devel"
|
|
short_desc="Apple Property List library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://libimobiledevice.org"
|
|
changelog="https://raw.githubusercontent.com/libimobiledevice/libplist/master/NEWS"
|
|
distfiles="https://github.com/libimobiledevice/libplist/archive/${version}.tar.gz"
|
|
checksum=7e654bdd5d8b96f03240227ed09057377f06ebad08e1c37d0cfa2abe6ba0cee2
|
|
|
|
pre_configure() {
|
|
sed -i 's,-L$(libdir),,g' cython/Makefile.am
|
|
export PYTHON_CPPFLAGS=" -I${XBPS_CROSS_BASE}/${py3_inc}"
|
|
export PYTHON_LDFLAGS=" -L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}"
|
|
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-python3_package() {
|
|
lib32disabled=yes
|
|
short_desc+=" - Python3 bindings"
|
|
pkg_install() {
|
|
vmove "${py3_lib}"
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|