Date: Thursday, April 6, 2023 @ 02:26:55
Author: felixonmars
Revision: 1438090
archrelease: copy trunk to community-staging-any
Added:
python-sphinx-furo/repos/community-staging-any/
python-sphinx-furo/repos/community-staging-any/PKGBUILD
(from rev 1438089, python-sphinx-furo/trunk/PKGBUILD)
python-sphinx-furo/repos/community-staging-any/keys/
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: python-sphinx-furo/repos/community-staging-any/PKGBUILD (from rev
1438089, python-sphinx-furo/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 02:26:55 UTC (rev 1438090)
@@ -0,0 +1,56 @@
+# Maintainer: Filipe LaĆns (FFY00) <[email protected]>
+# Maintainer: Daniel M. Capella <[email protected]>
+
+_pkgname=furo
+pkgname=python-sphinx-$_pkgname
+pkgver=2023.03.27
+pkgrel=2
+pkgdesc='Clean customizable documentation theme for Sphinx'
+arch=('any')
+url='https://github.com/pradyunsg/furo'
+license=('MIT')
+depends=('python-sphinx-basic-ng' 'python-pygments' 'python-beautifulsoup4')
+makedepends=('python-build' 'python-installer' 'python-sphinx-theme-builder'
'python-flit-core'
+ 'nodejs-lts-gallium' 'npm' 'expac' 'git')
+source=("git+$url.git#tag=$pkgver?signed")
+b2sums=('SKIP')
+validpgpkeys=('E2FEFA4CA4BDD28171DB00F3FF99710C4332258E') # Pradyun Gedam
(GitHub July 2020 Key) <[email protected]>
+
+prepare() {
+ cd $_pkgname
+ # force use of system nodejs
+ local node_ver=$(expac %v nodejs-lts-gallium | cut -d - -f 1)
+ sed -i "s/16.15.1/$node_ver/" pyproject.toml
+}
+
+build() {
+ cd $_pkgname
+
+ STB_USE_SYSTEM_NODE=true python -m build -nw
+
+ # docs disabled for now to unblock Python 3.10 update
+
+ # sphinx needs this theme installed because it is uses it.
+ # simply injecting the package to sys.path (via PYTHONPATH or similar)
+ # is not enough because sphinx looks for themes in the registered
+ # entrypoints, this means we actually have to install the package.
+ # for this we will create a venv with access to system packages and
+ # install the theme there, then we will build the documentation.
+
+ #python -m venv --system-site-packages doc-env
+ #doc-env/bin/python setup.py install --skip-build
+
+ #doc-env/bin/python /usr/bin/sphinx-build -b dirhtml -v docs build/docs/html
+}
+
+package() {
+ cd $_pkgname
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ #install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+ #cp -r -a --no-preserve=ownership build/docs/html
"$pkgdir"/usr/share/doc/$pkgname
+ #rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}