[arch-commits] Commit in python-sphinxcontrib-qthelp/repos/community-any (2 files)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Sep 6 20:24:43 UTC 2022
Date: Tuesday, September 6, 2022 @ 20:24:43
Author: polyzen
Revision: 1294916
archrelease: copy trunk to community-any
Added:
python-sphinxcontrib-qthelp/repos/community-any/PKGBUILD
(from rev 1294915, python-sphinxcontrib-qthelp/trunk/PKGBUILD)
Deleted:
python-sphinxcontrib-qthelp/repos/community-any/PKGBUILD
----------+
PKGBUILD | 78 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 46 insertions(+), 32 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 20:24:26 UTC (rev 1294915)
+++ PKGBUILD 2022-09-06 20:24:43 UTC (rev 1294916)
@@ -1,32 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-_name=sphinxcontrib-qthelp
-pkgname=python-sphinxcontrib-qthelp
-pkgver=1.0.3
-pkgrel=8
-pkgdesc='Sphinx extension which outputs QtHelp document'
-arch=('any')
-url=https://github.com/sphinx-doc/sphinxcontrib-qthelp
-license=('BSD')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest' 'python-sphinx')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72')
-
-build() {
- cd $_name-$pkgver
- python setup.py build
-}
-
-check() {
- cd $_name-$pkgver
- pytest
-}
-
-package() {
- cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-sphinxcontrib-qthelp/repos/community-any/PKGBUILD (from rev 1294915, python-sphinxcontrib-qthelp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-06 20:24:43 UTC (rev 1294916)
@@ -0,0 +1,46 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=sphinxcontrib-qthelp
+pkgname=python-sphinxcontrib-qthelp
+pkgver=1.0.3
+pkgrel=9
+pkgdesc='Sphinx extension which outputs QtHelp document'
+arch=('any')
+url=https://github.com/sphinx-doc/sphinxcontrib-qthelp
+license=('BSD')
+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"
+ 'qthelp-read_text.patch::https://github.com/sphinx-doc/sphinxcontrib-qthelp/commit/42ca78b178c640cd024f16bfa291ae5093ce4920.patch')
+sha256sums=('4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72'
+ '8bfb2d888541298270dd6ac8eba0b3b9703fe90ecfa93a8721d0aa31b82197ab')
+b2sums=('7a82e8941d49836cf3e64aabe05ba65b34596f7ba0287b4dc7ed2c5940f6944d1853790d1d52637b03d934effbba8fc5094089e2924322cf1b373432c60bce6a'
+ 'ee9338ed25c058754498d980e2baa08d50f7c59c8b2854c80929cf5e6ce3b4de0f1a18e9372d0abe9bec0f331b1328fa4068cb1c7a44adbac262c00b22123a51')
+
+prepare() {
+ cd $_name-$pkgver
+ # https://github.com/sphinx-doc/sphinxcontrib-qthelp/pull/14
+ patch --forward --strip=1 --input=../qthelp-read_text.patch
+}
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_name-$pkgver
+ pytest
+}
+
+package() {
+ cd $_name-$pkgver
+ 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_qthelp-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list