43 lines
888 B
Bash
43 lines
888 B
Bash
pkgname=lxml
|
|
pkgver=6.0.0
|
|
pkgdesc="Python binding for the libxml2 and libxslt libraries"
|
|
arch=('x86_64')
|
|
license=(
|
|
'BSD-3-Clause'
|
|
'MIT'
|
|
'MIT-CMU'
|
|
'GPL-2.0-only'
|
|
'LicenseRef-RNG2Schtrn'
|
|
'LicenseRef-XSD2Schtrn'
|
|
)
|
|
url="https://lxml.de/"
|
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
|
urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}")
|
|
md5sums=("3f6f87e9b333b68070210668f0831618")
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
src_check() {
|
|
:
|
|
}
|
|
|
|
src_install() {
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
|
|
# licenses
|
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" \
|
|
LICENSES.txt \
|
|
doc/licenses/BSD.txt \
|
|
doc/licenses/elementtree.txt \
|
|
doc/licenses/GPL.txt
|
|
}
|
|
|
|
|
|
# vim:ft=sh syn=sh et sw=2:
|