* python-markdown: Update to 3.9 * python-pytest: Update to 8.4.2 * python-lxml: Update to 6.0.1 * python-setuptools-scm: Update to 9.2.0 * gi-docgen: Update to 2025.4
49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
# Maintainer: Biswapriyo Nath <nathbappai@gmail.com>
|
|
|
|
_realname=lxml
|
|
pkgbase="python-${_realname}"
|
|
pkgname=("python-${_realname}")
|
|
pkgver=6.0.1
|
|
pkgrel=1
|
|
pkgdesc="Python binding for the libxml2 and libxslt libraries"
|
|
arch=('i686' 'x86_64')
|
|
url="https://lxml.de/"
|
|
msys2_repository_url="https://github.com/lxml/lxml"
|
|
msys2_references=(
|
|
"purl: pkg:pypi/lxml"
|
|
"cpe: cpe:/a:lxml:lxml"
|
|
)
|
|
license=('spdx:BSD-3-Clause')
|
|
depends=("python" "libxslt" "libxml2")
|
|
makedepends=(
|
|
"gcc"
|
|
"cython"
|
|
"libxslt-devel"
|
|
"libxml2-devel"
|
|
"pkgconf"
|
|
"python-setuptools"
|
|
"python-build"
|
|
"python-installer"
|
|
)
|
|
source=("https://github.com/lxml/lxml/archive/${_realname}-${pkgver}.tar.gz")
|
|
sha256sums=('2d7e4e2f141d935bcecb96a0de4e7662b120ecb3f60cfd7fe771d9cc52d246ba')
|
|
|
|
prepare() {
|
|
mv "lxml-lxml-${pkgver}" "lxml-${pkgver}"
|
|
cd "${_realname}-${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"
|
|
}
|