Date: Monday, January 23, 2023 @ 02:37:07
Author: grawlinson
Revision: 1387819
archrelease: copy trunk to community-any
Added:
python-sphinx-tabs/repos/community-any/
python-sphinx-tabs/repos/community-any/PKGBUILD
(from rev 1387818, python-sphinx-tabs/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: python-sphinx-tabs/repos/community-any/PKGBUILD (from rev 1387818,
python-sphinx-tabs/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2023-01-23 02:37:07 UTC (rev 1387819)
@@ -0,0 +1,46 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-sphinx-tabs
+pkgver=3.4.1
+pkgrel=1
+pkgdesc='Create tabbed content in Sphinx documentation'
+arch=('any')
+url='https://sphinx-tabs.readthedocs.io/'
+license=('MIT')
+depends=(
+ 'python'
+ 'python-sphinx'
+ 'python-docutils'
+ 'python-pygments'
+)
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+)
+_commit='9431223384729010ba29c27c2d2976ce76b7e1ad'
+source=("$pkgname::git+https://github.com/executablebooks/sphinx-tabs#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}