void-packages/srcpkgs/python-lxml/template

38 lines
1.0 KiB
Bash

# Template file for 'python-lxml'
pkgname=python-lxml
version=4.2.3
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=b398434856f0f1399da8f8b48e72cb9075db195cb64ddbb05cb7725f0461d571
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
}
}