Date: Sunday, January 22, 2023 @ 07:49:06
Author: grawlinson
Revision: 1387663
archrelease: copy trunk to community-any
Added:
python-consolekit/repos/community-any/
python-consolekit/repos/community-any/PKGBUILD
(from rev 1387662, python-consolekit/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-consolekit/repos/community-any/PKGBUILD (from rev 1387662,
python-consolekit/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2023-01-22 07:49:06 UTC (rev 1387663)
@@ -0,0 +1,51 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-consolekit
+pkgver=1.4.1
+pkgrel=1
+pkgdesc='Additional utilities for click'
+arch=('any')
+url='https://consolekit.readthedocs.io/'
+license=('MIT')
+depends=(
+ 'python'
+ 'python-click'
+ 'python-colorama'
+ 'python-deprecation-alias'
+ 'python-domdf-python-tools'
+ 'python-mistletoe'
+ 'python-typing-extensions'
+)
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-flit-core'
+)
+optdepends=(
+ 'python-psutil: better terminal support'
+)
+_commit='c39a554528649cec11bac083ad44f14b865307a7'
+source=("$pkgname::git+https://github.com/domdfcoding/consolekit#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
+}