From a0f905af7d17902a955f2d6aa218b58a614ef4e4 Mon Sep 17 00:00:00 2001 From: taotieren Date: Fri, 6 Feb 2026 23:55:03 +0800 Subject: [PATCH] update 0.8.0-1 --- .SRCINFO | 21 +++++++++++++++++++++ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0943b281a3ac --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = python-toctree-plus + pkgdesc = Enhanced Sphinx TocTree which shows classes, functions etc. as if they were sections + pkgver = 0.8.0 + pkgrel = 1 + url = https://github.com/sphinx-toolbox/toctree_plus + arch = any + license = BSD-3-Clause + makedepends = git + makedepends = python-whey + makedepends = python-build + makedepends = python-license-expression + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools + depends = python + depends = python-docutils + depends = python-sphinx + source = toctree-plus::git+https://github.com/sphinx-toolbox/toctree_plus.git#tag=v0.8.0 + sha512sums = 3860c31e6ce66fd762425486b62322106305096a098ae8aede608154378d8776ea28710c7a4d60ed400aae09571be1fa7e317d48734e325d2ae60fae33d7eaaa + +pkgname = python-toctree-plus diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d32a388f2b13 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: taotieren + +pkgname=python-toctree-plus +_name=${pkgname#python-} +pkgver=0.8.0 +pkgrel=1 +pkgdesc='Enhanced Sphinx TocTree which shows classes, functions etc. as if they were sections' +arch=('any') +url='https://github.com/sphinx-toolbox/toctree_plus' +license=('BSD-3-Clause') +depends=( + 'python' + 'python-docutils' + 'python-sphinx' +) +makedepends=( + 'git' + python-whey + 'python-build' + 'python-license-expression' + 'python-installer' + 'python-wheel' + 'python-setuptools' +) +optdepends=() +source=("${_name}::git+${url}.git#tag=v$pkgver") +sha512sums=('3860c31e6ce66fd762425486b62322106305096a098ae8aede608154378d8776ea28710c7a4d60ed400aae09571be1fa7e317d48734e325d2ae60fae33d7eaaa') + +prepare() { + git -C "${srcdir}/${_name}" clean -dfx +} + +build() { + cd "${srcdir}/${_name}" + python -m whey --wheel +} + +package() { + cd "${srcdir}/${_name}" + python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm0644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/" +}