Date: Friday, March 4, 2022 @ 10:25:29 Author: polyzen Revision: 1141611
archrelease: copy trunk to community-any Added: python-sphinx-furo/repos/community-any/PKGBUILD (from rev 1141610, python-sphinx-furo/trunk/PKGBUILD) Deleted: python-sphinx-furo/repos/community-any/PKGBUILD ----------+ PKGBUILD | 96 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-03-04 10:25:10 UTC (rev 1141610) +++ PKGBUILD 2022-03-04 10:25:29 UTC (rev 1141611) @@ -1,48 +0,0 @@ -# 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 -} Copied: python-sphinx-furo/repos/community-any/PKGBUILD (from rev 1141610, python-sphinx-furo/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-03-04 10:25:29 UTC (rev 1141611) @@ -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.03.04 +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=('a238dca47b215d31dd5ef7e0cca52d66416270a4ef266aadf5e67647cd9f340024d85d97c07d832102222566f52c5916f7b02c22fa214f12be8d4b9c6b46219c') + +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 +}