2018-06-23 14:03:40 -03:00

34 lines
967 B
Bash

# Template file for 'python-lxml'
pkgname=python-lxml
version=4.2.2
revision=1
wrksrc="lxml-lxml-${version}"
build_style=python-module
pycompile_module="lxml"
hostmakedepends="libxslt-devel python-Cython python-setuptools python3-Cython python3-setuptools"
makedepends="libxslt-devel python-devel python3-devel"
checkdepends="python3"
short_desc="Python2 binding for the libxml2 and libxslt libraries"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://lxml.de/"
license="BSD-3-Clause, ElementTree, GPL-2.0-or-later, ZPL-2.0" # ElementTree isn't SPDX
distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
checksum=e77a760b5efcc81ddf9dad8b572dcde6d8fbad7307a6d4b8e616fda2293aec6f
do_check() {
python3 test.py
}
post_install() {
vlicense LICENSES.txt LICENSES
}
python3-lxml_package() {
pycompile_module="lxml"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSES.txt LICENSES
}
}