137472e0dd
Closes: #12774 [via git-merge-pr]
33 lines
967 B
Bash
33 lines
967 B
Bash
# Template file for 'python-lxml'
|
|
pkgname=python-lxml
|
|
version=4.2.1
|
|
revision=1
|
|
wrksrc="lxml-lxml-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="libxslt-devel python-Cython python-setuptools python3-Cython python3-setuptools"
|
|
makedepends="libxslt-devel python-devel python3-devel"
|
|
checkdepends="python3"
|
|
pycompile_module="lxml"
|
|
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=e09b4ae8bdc55bd1983dbacc467ef2da62591faec42e6c8a8864f12c1844028d
|
|
|
|
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
|
|
}
|
|
}
|