Date: Thursday, December 29, 2022 @ 06:57:48 Author: grawlinson Revision: 1371847
addpkg: python-sphinxcontrib-fulltoc 1.2-2 Added: python-sphinxcontrib-fulltoc/ python-sphinxcontrib-fulltoc/repos/ python-sphinxcontrib-fulltoc/trunk/ python-sphinxcontrib-fulltoc/trunk/PKGBUILD ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Added: python-sphinxcontrib-fulltoc/trunk/PKGBUILD =================================================================== --- python-sphinxcontrib-fulltoc/trunk/PKGBUILD (rev 0) +++ python-sphinxcontrib-fulltoc/trunk/PKGBUILD 2022-12-29 06:57:48 UTC (rev 1371847) @@ -0,0 +1,43 @@ +# Maintainer: George Rawlinson <[email protected]> + +pkgname=python-sphinxcontrib-fulltoc +pkgver=1.2 +pkgrel=2 +pkgdesc='Sphinx extension to show full table of contents in the sidebar' +arch=('any') +url='https://github.com/sphinx-contrib/fulltoc' +license=('Apache') +depends=('python' 'python-sphinx') +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-wheel' + 'python-setuptools' + 'python-pbr' +) +_commit='ddbd9545fd2b8103cf31ded01b457772c4579e5c' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +build() { + cd "$pkgname" + + # issue opened regarding deprecation warnings + # https://github.com/sphinx-contrib/fulltoc/issues/24 + python -m build --wheel --no-isolation +} + +package() { + cd "$pkgname" + + python -m installer --destdir="$pkgdir" dist/*.whl +} + +# vim: ts=2 sw=2 et
