Date: Wednesday, February 23, 2022 @ 20:25:53 Author: polyzen Revision: 1136307
archrelease: copy trunk to community-any Added: python-sphinx-furo/repos/community-any/PKGBUILD (from rev 1136306, python-sphinx-furo/trunk/PKGBUILD) Deleted: python-sphinx-furo/repos/community-any/PKGBUILD ----------+ PKGBUILD | 95 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 48 insertions(+), 47 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-02-23 20:25:32 UTC (rev 1136306) +++ PKGBUILD 2022-02-23 20:25:53 UTC (rev 1136307) @@ -1,47 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> - -_pkgname=furo -pkgname=python-sphinx-$_pkgname -pkgver=2022.02.14.1 -pkgrel=1 -pkgdesc='A clean customizable documentation theme for Sphinx' -arch=('any') -url='https://github.com/pradyunsg/furo' -license=('MIT') -depends=('python-sphinx' 'python-pygments' 'python-beautifulsoup4') -makedepends=('python-build' 'python-pip' 'python-sphinx-theme-builder' 'python-flit-core' - 'nodejs-lts-gallium' 'npm' 'expac') -source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") -sha512sums=('883b149e622aa020c0a2b6e5f85b463d0a13dcabace2d6068254c078dab198200a86b803f198fcdbc6d358aeeed84b2e6a292e6f2ed5f07d95659439cb2dc787') - -build() { - cd $_pkgname-$pkgver - - 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-$pkgver - - PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps 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 -} Copied: python-sphinx-furo/repos/community-any/PKGBUILD (from rev 1136306, python-sphinx-furo/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-02-23 20:25:53 UTC (rev 1136307) @@ -0,0 +1,48 @@ +# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> +# Maintainer: Daniel M. Capella <poly...@archlinux.org> + +_pkgname=furo +pkgname=python-sphinx-$_pkgname +pkgver=2022.02.23 +pkgrel=1 +pkgdesc='A clean customizable documentation theme for Sphinx' +arch=('any') +url='https://github.com/pradyunsg/furo' +license=('MIT') +depends=('python-sphinx' 'python-pygments' 'python-beautifulsoup4') +makedepends=('python-build' 'python-installer' 'python-sphinx-theme-builder' 'python-flit-core' + 'nodejs-lts-gallium' 'npm') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha512sums=('b261b5ad66d26c0447ec16f69a9e895b55b6f0230826692adcf721f0afed6fed688d1c338b738d5afda2accdfd7afe29afff1ce2572d817e01bbad350a0633b0') + +build() { + cd $_pkgname-$pkgver + + 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-$pkgver + + 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 +}