33 lines
883 B
Bash
33 lines
883 B
Bash
# Template file for 'libxml2-python'
|
|
pkgname=libxml2-python
|
|
version=2.9.8
|
|
revision=6
|
|
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=0b74e51595654f958148759cfef0993114ddccccbb6f31aee018f3558e8e2732
|
|
|
|
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
|
|
}
|
|
}
|