[arch-commits] Commit in python-lxml/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Jan 20 00:38:59 UTC 2022
Date: Thursday, January 20, 2022 @ 00:38:59
Author: felixonmars
Revision: 434763
archrelease: copy trunk to testing-x86_64
Added:
python-lxml/repos/testing-x86_64/
python-lxml/repos/testing-x86_64/PKGBUILD
(from rev 434762, python-lxml/trunk/PKGBUILD)
----------+
PKGBUILD | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
Copied: python-lxml/repos/testing-x86_64/PKGBUILD (from rev 434762, python-lxml/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-01-20 00:38:59 UTC (rev 434763)
@@ -0,0 +1,70 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-lxml
+pkgname=('python-lxml' 'python-lxml-docs')
+pkgver=4.7.1
+pkgrel=1
+pkgdesc="Python3 binding for the libxml2 and libxslt libraries"
+arch=('x86_64')
+license=('BSD' 'custom')
+url="https://lxml.de/"
+depends=('python' 'libxslt')
+optdepends=('python-beautifulsoup4: support for beautifulsoup parser to parse not well formed HTML'
+ 'python-cssselect: support for cssselect'
+ 'python-html5lib: support for html5lib parser'
+ 'python-lxml-docs: offline docs')
+makedepends=('python-setuptools' 'python-pygments' 'python-sphinx' 'python-sphinx_rtd_theme'
+ 'cython')
+checkdepends=('python-cssselect' 'python-html5lib' 'python-beautifulsoup4')
+source=("https://github.com/lxml/lxml/archive/lxml-$pkgver.tar.gz")
+sha512sums=('33c88ff07152437a09268f3348ada97549686b5a59e2135631991ecc79ad02f35c20aae5d8363d2795bf058b05ef70fa6fbb56b081308cd89b073e176f4872d9')
+
+prepare() {
+ mv lxml-lxml-$pkgver lxml-$pkgver
+
+ # Setting LC_CTYPE to workaround encoding issue
+ export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+ cd lxml-$pkgver
+ python setup.py build
+ make html
+}
+
+check() {
+ # TODO: Find a sane way to skip inplace build
+
+ cd lxml-$pkgver
+ make PYTHON=python test
+}
+
+package_python-lxml() {
+ cd lxml-$pkgver
+ python setup.py install --root="$pkgdir" --skip-build --optimize=1
+
+ install -Dm644 LICENSES.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 doc/licenses/BSD.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
+ install -Dm644 doc/licenses/elementtree.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
+}
+
+package_python-lxml-docs() {
+ pkgdesc="Python binding for the libxml2 and libxslt libraries (docs)"
+ depends=()
+ options=('docs')
+
+ cd lxml-$pkgver
+ install -d "$pkgdir"/usr/share/doc/$pkgbase
+ cp -r doc/html "$pkgdir"/usr/share/doc/$pkgbase
+
+ install -Dm644 LICENSES.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 doc/licenses/BSD.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
+ install -Dm644 doc/licenses/elementtree.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
+}
More information about the arch-commits
mailing list