36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'python-lxml'
|
|
pkgname=python-lxml
|
|
version=3.8.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"
|
|
pycompile_module="lxml"
|
|
short_desc="Python2 binding for the libxml2 and libxslt libraries"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://lxml.de/"
|
|
license="3-clause-BSD, ElementTree, GPL-2, ZPL-2.0"
|
|
distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
|
|
checksum=46ae9975e235f5f45d40c79b7084bf789204a0c5de0e075306a043b2161189e9
|
|
|
|
post_install() {
|
|
vlicense LICENSES.txt LICENSES
|
|
}
|
|
|
|
python3-lxml_package() {
|
|
replaces="python3.4-lxml>=0"
|
|
pycompile_module="lxml"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSES.txt LICENSES
|
|
}
|
|
}
|
|
python3.4-lxml_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-lxml>=${version}_${revision}"
|
|
}
|