Date: Thursday, April 6, 2023 @ 14:03:33
  Author: felixonmars
Revision: 1439142

archrelease: copy trunk to community-staging-any

Added:
  python-mistletoe/repos/community-staging-any/
  python-mistletoe/repos/community-staging-any/PKGBUILD
    (from rev 1439140, python-mistletoe/trunk/PKGBUILD)

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

Copied: python-mistletoe/repos/community-staging-any/PKGBUILD (from rev 
1439140, python-mistletoe/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 14:03:33 UTC (rev 1439142)
@@ -0,0 +1,46 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-mistletoe
+pkgver=1.0.1
+pkgrel=2
+pkgdesc='A fast, extensible Markdown parser in pure Python'
+arch=('any')
+url='https://github.com/miyuchina/mistletoe'
+license=('MIT')
+depends=('python')
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+_commit='dc53c539fe59295a5f53a4dd1059bd3cc2a4e806'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  python -m unittest discover test
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Reply via email to