python-lxml 5.3.0-1
This commit is contained in:
parent
8620627b82
commit
3337b48265
32
PKGBUILD
32
PKGBUILD
@ -4,8 +4,9 @@
|
|||||||
# then please put 'unknown'.
|
# then please put 'unknown'.
|
||||||
|
|
||||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||||
pkgname=python-lxml
|
pkgname=(python-lxml python-lxml-docs)
|
||||||
pkgver=5.1.0
|
pkgbase=python-lxml
|
||||||
|
pkgver=5.3.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Python3 binding for the libxml2 and libxslt libraries"
|
pkgdesc="Python3 binding for the libxml2 and libxslt libraries"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
@ -17,20 +18,35 @@ makedepends=(
|
|||||||
'python-installer'
|
'python-installer'
|
||||||
'python-flit-core'
|
'python-flit-core'
|
||||||
'python-wheel'
|
'python-wheel'
|
||||||
|
'python-pygments'
|
||||||
|
'python-sphinx'
|
||||||
|
'python-sphinx_rtd_theme'
|
||||||
'python-cython'
|
'python-cython'
|
||||||
)
|
)
|
||||||
source=(https://github.com/lxml/lxml/releases/download/${pkgname#*-}-${pkgver}/${pkgname#*-}-${pkgver}.tar.gz)
|
source=(https://github.com/lxml/lxml/releases/download/${pkgbase#*-}-${pkgver}/${pkgbase#*-}-${pkgver}.tar.gz)
|
||||||
sha256sums=(c4b12bc6d6186ba8ac07bb7bb558312ec6738ca7d9365e862aa9c4462388ffb7)
|
sha256sums=(4e109ca30d1edec1ac60cdbe341905dc3b8f55b16855e03a54aaf59e51ec8c6f)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname#*-}-${pkgver}
|
cd ${pkgbase#*-}-${pkgver}
|
||||||
|
|
||||||
|
export LC_CTYPE=en_US.UTF-8
|
||||||
|
|
||||||
python3 -m build -nw
|
python3 -m build -nw
|
||||||
|
make html
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package_python-lxml() {
|
||||||
cd ${pkgname#*-}-${pkgver}
|
cd ${pkgbase#*-}-${pkgver}
|
||||||
|
|
||||||
python3 -m installer -d ${pkgdir} dist/*.whl
|
python3 -m installer -d ${pkgdir} dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package_python-lxml-docs() {
|
||||||
|
pkgdesc="Python binding for the libxml2 and libxslt libraries (docs)"
|
||||||
|
depends=()
|
||||||
|
|
||||||
|
cd ${pkgbase#*-}-${pkgver}
|
||||||
|
|
||||||
|
install -d ${pkgdir}/usr/share/doc/${pkgbase}
|
||||||
|
cp -r doc/html ${pkgdir}/usr/share/doc/${pkgbase}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user