# Maintainer: Biswapriyo Nath _realname=lxml pkgbase="python-${_realname}" pkgname=("python-${_realname}") pkgver=4.9.2 pkgrel=3 pkgdesc="Python binding for the libxml2 and libxslt libraries" arch=('any') url="https://lxml.de/" license=('spdx:BSD-3-Clause') depends=("python" "libxslt" "libxml2") makedepends=( "gcc" "cython0" "libxslt-devel" "libxml2-devel" "pkgconf" "python-setuptools" "python-wheel" "python-build" "python-installer" ) source=("https://github.com/lxml/lxml/archive/${_realname}-${pkgver}.tar.gz") sha256sums=('c057e334efc357fc88eb71b888d2df3a44cf3c7aaac56a8753e92090c5217050') prepare() { mv "lxml-lxml-${pkgver}" "lxml-${pkgver}" } build() { cd "${_realname}-${pkgver}" python -m build --wheel --skip-dependency-check --no-isolation } package() { cd "${_realname}-${pkgver}" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSES.txt "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSES.txt" }