[arch-commits] Commit in python-mistletoe/repos (community-any community-any/PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Tue Apr 12 10:00:25 UTC 2022


    Date: Tuesday, April 12, 2022 @ 10:00:25
  Author: grawlinson
Revision: 1185946

archrelease: copy trunk to community-any

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

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

Copied: python-mistletoe/repos/community-any/PKGBUILD (from rev 1185945, python-mistletoe/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-04-12 10:00:25 UTC (rev 1185946)
@@ -0,0 +1,40 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=python-mistletoe
+pkgver=0.8.2
+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-setuptools')
+_commit='5916ebd57a52668976831b2d249e96662cb001f4'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname"
+
+  python -m unittest discover test
+}
+
+package() {
+  cd "$pkgname"
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}



More information about the arch-commits mailing list