Date: Monday, January 23, 2023 @ 02:34:30
  Author: grawlinson
Revision: 1387818

addpkg: python-sphinx-tabs 3.4.1-1

Added:
  python-sphinx-tabs/
  python-sphinx-tabs/repos/
  python-sphinx-tabs/trunk/
  python-sphinx-tabs/trunk/PKGBUILD

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Added: python-sphinx-tabs/trunk/PKGBUILD
===================================================================
--- python-sphinx-tabs/trunk/PKGBUILD                           (rev 0)
+++ python-sphinx-tabs/trunk/PKGBUILD   2023-01-23 02:34:30 UTC (rev 1387818)
@@ -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
+}

Reply via email to