void-packages/srcpkgs/python-lxml/template
2018-08-05 08:41:06 +02:00

37 lines
1 KiB
Bash

# Template file for 'python-lxml'
pkgname=python-lxml
version=4.2.4
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="https://lxml.de/"
license="BSD-3-Clause, ElementTree"
distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
checksum=010ab71b1058415a5740e3cce545251b5a7ce2d6aefdbc9d8bd0a52b08f9628b
do_check() {
python3 test.py
}
post_install() {
vlicense LICENSES.txt
vlicense doc/licenses/BSD.txt
vlicense doc/licenses/elementtree.txt
}
python3-lxml_package() {
pycompile_module="lxml"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSES.txt
vlicense doc/licenses/BSD.txt
vlicense doc/licenses/elementtree.txt
}
}