[arch-commits] Commit in python-mistune/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:40:42 UTC 2020


    Date: Monday, November 9, 2020 @ 15:40:42
  Author: felixonmars
Revision: 747079

archrelease: copy trunk to community-staging-any

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

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

Copied: python-mistune/repos/community-staging-any/PKGBUILD (from rev 747078, python-mistune/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:40:42 UTC (rev 747079)
@@ -0,0 +1,36 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: shmilee
+
+pkgbase=python-mistune
+_pkgname=mistune
+pkgname=('python-mistune' 'python2-mistune')
+pkgver=0.8.4
+pkgrel=4
+pkgdesc="The fastest markdown parser in pure Python with renderer feature."
+arch=('any')
+url="https://github.com/lepture/mistune"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tgz::https://github.com/lepture/mistune/archive/v${pkgver}.tar.gz")
+md5sums=('22fc9ea84220214a2b9b2b5b4213e209')
+
+prepare() {
+  cd "$srcdir"
+  cp -r "$srcdir/$_pkgname-$pkgver" "$srcdir/${_pkgname}2-$pkgver"
+}
+
+package_python-mistune() {
+  cd "$srcdir/${_pkgname}-$pkgver"
+  python setup.py install --root="$pkgdir/"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python-mistune/LICENSE"
+}
+
+package_python2-mistune() {
+  depends=('python2')
+  cd "$srcdir/${_pkgname}2-$pkgver"
+  python2 setup.py install --root="$pkgdir/"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-mistune/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list