Date: Tuesday, September 6, 2022 @ 19:07:39 Author: polyzen Revision: 1294583
upgpkg: python-sphinx 5.1.1-2: Use PEP 517 Modified: python-sphinx/trunk/PKGBUILD ----------+ PKGBUILD | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-09-06 19:07:31 UTC (rev 1294582) +++ PKGBUILD 2022-09-06 19:07:39 UTC (rev 1294583) @@ -6,7 +6,7 @@ pkgname=python-sphinx pkgver=5.1.1 -pkgrel=1 +pkgrel=2 pkgdesc='Python documentation generator' arch=('any') url=http://www.sphinx-doc.org/ @@ -21,7 +21,8 @@ 'python-snowballstemmer' 'python-sphinx-alabaster-theme' 'python-sphinxcontrib-'{{apple,dev,html}help,jsmath,qthelp,serializinghtml}) -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools' + 'python-wheel') checkdepends=('cython' 'imagemagick' 'librsvg' 'python-html5lib' @@ -40,7 +41,7 @@ build() { cd Sphinx-$pkgver - make build + python -m build --wheel --skip-dependency-check --no-isolation } check() { @@ -50,8 +51,13 @@ package() { cd Sphinx-$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"/sphinx-$pkgver.dist-info/LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } # vim:set ts=2 sw=2 et: