[arch-commits] Commit in python-sphinxcontrib-serializinghtml/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Sep 6 20:28:57 UTC 2022
Date: Tuesday, September 6, 2022 @ 20:28:57
Author: polyzen
Revision: 1294935
upgpkg: python-sphinxcontrib-serializinghtml 1.1.5-4: Use PEP 517
Modified:
python-sphinxcontrib-serializinghtml/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 20:28:48 UTC (rev 1294934)
+++ PKGBUILD 2022-09-06 20:28:57 UTC (rev 1294935)
@@ -3,12 +3,13 @@
_name=sphinxcontrib-serializinghtml
pkgname=python-sphinxcontrib-serializinghtml
pkgver=1.1.5
-pkgrel=3
+pkgrel=4
pkgdesc='Sphinx extension which outputs "serialized" HTML files (json and pickle)'
arch=('any')
url=https://github.com/sphinx-doc/sphinxcontrib-serializinghtml
license=('BSD')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
checkdepends=('python-pytest' 'python-sphinx')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952')
@@ -16,7 +17,7 @@
build() {
cd $_name-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -26,6 +27,11 @@
package() {
cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/sphinxcontrib_serializinghtml-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list