35 lines
968 B
Bash
35 lines
968 B
Bash
# Template file for 'python-lxml'
|
|
pkgname=python-lxml
|
|
version=4.2.0
|
|
revision=1
|
|
wrksrc="lxml-lxml-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools
|
|
python-Cython python3-Cython libxslt-devel"
|
|
makedepends="python-devel python3-devel libxslt-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=6dce4d4024e7110b68c6aee28bc78b96856be584125808b8be9a733ca04fce8c
|
|
|
|
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
|
|
}
|
|
}
|