# Contributor: Francesco Colista # Contributor: Jakub Jirutka # Maintainer: Francesco Colista pkgname=py3-lxml _pkgname=lxml pkgver=4.9.3 pkgrel=0 pkgdesc="Python3 LXML Library" url="https://lxml.de/" arch="all" license="BSD-3-Clause AND ZPL-2.0 AND ElementTree" makedepends=" cython libxml2-dev libxslt-dev py3-setuptools python3-dev " subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz libxml-2.10.4.patch libxml-2.11.0.patch tests-fix-encoding-name.patch " builddir="$srcdir/$_pkgname-$pkgver" # secfixes: # 4.9.2-r0: # - CVE-2022-2309 # 4.6.5-r0: # - CVE-2021-43818 # 4.6.2-r0: # - CVE-2020-27783 # 4.6.3-r0: # - CVE-2021-28957 build() { export CFLAGS="$CFLAGS -flto=auto" python3 setup.py build --with-cython } check() { make test3 } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" b5e47d6e7301efa39f6cf07153d3e007dd3d93c32a3a072dca457486305480bc8345896d0c4519064f51e4bc8611c3bb5ba6be426f853509ec12c7b8796d01c5 lxml-4.9.3.tar.gz 9602b2d704dfa85bc76a84c905531ae418c326b93b601da83ad4e14460551f4eb2ddde406e67de181337028f3d591b9d537c6637ec2bbc7dd576cfbd1a50552c libxml-2.10.4.patch 6436f87042563bb3a08bd7d0216fdb284d639b1a72fde77dce75d7c3e63f4f18ba115df9540fe4298f558df53f9dbfbd781374138544e8e5d9cb5ca5928f343c libxml-2.11.0.patch ef5ba4064166443e07040db315173a4d0cb0d83eb3cd49623f210253a25433ec1c408d6d8e538f93498a211bc1695fdaa3e39f8ac75f36a3319c38bd96ba73eb tests-fix-encoding-name.patch "