Date: Sunday, January 22, 2023 @ 07:48:17
  Author: grawlinson
Revision: 1387662

addpkg: python-consolekit 1.4.1-1

Added:
  python-consolekit/
  python-consolekit/repos/
  python-consolekit/trunk/
  python-consolekit/trunk/PKGBUILD

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

Added: python-consolekit/trunk/PKGBUILD
===================================================================
--- python-consolekit/trunk/PKGBUILD                            (rev 0)
+++ python-consolekit/trunk/PKGBUILD    2023-01-22 07:48:17 UTC (rev 1387662)
@@ -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
+}

Reply via email to