Date: Monday, January 23, 2023 @ 07:58:08
  Author: grawlinson
Revision: 1387904

archrelease: copy trunk to community-any

Added:
  python-sphinx-prompt/repos/community-any/
  python-sphinx-prompt/repos/community-any/PKGBUILD
    (from rev 1387903, python-sphinx-prompt/trunk/PKGBUILD)

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

Copied: python-sphinx-prompt/repos/community-any/PKGBUILD (from rev 1387903, 
python-sphinx-prompt/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2023-01-23 07:58:08 UTC (rev 1387904)
@@ -0,0 +1,46 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-sphinx-prompt
+pkgver=1.5.0
+pkgrel=1
+pkgdesc='Sphinx directive to add unselectable prompt'
+arch=('any')
+url='https://github.com/sbrunner/sphinx-prompt'
+license=('BSD')
+depends=(
+  'python'
+  'python-sphinx'
+  'python-pygments'
+  'python-docutils'
+)
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+_commit='427351db81469d8065b4632ae201c9d26e1f8062'
+source=("$pkgname::git+$url#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