[arch-commits] Commit in python-sphinxcontrib-applehelp/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Sep 6 17:29:06 UTC 2022
Date: Tuesday, September 6, 2022 @ 17:29:06
Author: polyzen
Revision: 1294466
upgpkg: python-sphinxcontrib-applehelp 1.0.2-9: Use PEP 517
Modified:
python-sphinxcontrib-applehelp/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 17:28:01 UTC (rev 1294465)
+++ PKGBUILD 2022-09-06 17:29:06 UTC (rev 1294466)
@@ -3,19 +3,21 @@
_name=sphinxcontrib-applehelp
pkgname=python-sphinxcontrib-applehelp
pkgver=1.0.2
-pkgrel=8
+pkgrel=9
pkgdesc='Sphinx extension which outputs Apple help books'
arch=('any')
url=https://github.com/sphinx-doc/sphinxcontrib-applehelp
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=('a072735ec80e7675e3f432fcae8610ecf509c5f1869d17e2eecff44389cdbc58')
+b2sums=('9532cb990ed97c6773388a66895a066958187e9100d226e2274c26ba07fc5832e42ba407864b69b002da926a79e71ac2d6315125906156214df3920b585d9f71')
build() {
cd $_name-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -25,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_applehelp-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list