Date: Monday, January 23, 2023 @ 07:57:04 Author: grawlinson Revision: 1387903
addpkg: python-sphinx-prompt 1.5.0-1 Added: python-sphinx-prompt/ python-sphinx-prompt/repos/ python-sphinx-prompt/trunk/ python-sphinx-prompt/trunk/PKGBUILD ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Added: python-sphinx-prompt/trunk/PKGBUILD =================================================================== --- python-sphinx-prompt/trunk/PKGBUILD (rev 0) +++ python-sphinx-prompt/trunk/PKGBUILD 2023-01-23 07:57:04 UTC (rev 1387903) @@ -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 +}
