void-packages/srcpkgs/libxml2-python/template
Jürgen Buchmüller 884ef90219
libxml2-python: fix python3 malformed UTF8 strings
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-05-13 12:44:37 +02:00

32 lines
883 B
Bash

# Template file for 'libxml2-python'
pkgname=libxml2-python
version=2.9.9
revision=3
wrksrc="${pkgname%-python}-${version}"
build_wrksrc=python
build_style=python-module
hostmakedepends="python-devel python3-devel"
makedepends="libxml2-devel python-devel python3-devel"
depends="python python3"
short_desc="Library providing XML and HTML support - Python2 bindings"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="MIT"
homepage="http://www.xmlsoft.org/"
distfiles="http://xmlsoft.org/sources/libxml2-${version}.tar.gz"
checksum=94fb70890143e3c6549f265cee93ec064c80a84c42ad0f23e85ee1fd6540a871
pre_build() {
sed "s:/usr/include:${XBPS_CROSS_BASE}/usr/include:" -i setup.py
}
post_install() {
vlicense ../COPYING
}
libxml2-python3_package() {
short_desc+="${short_dest/Python2/Python3}"
pkg_install() {
vmove "usr/lib/python3*"
vlicense ../COPYING
}
}