Date: Thursday, July 16, 2020 @ 06:25:48
  Author: eschwartz
Revision: 664043

archrelease: copy trunk to community-any

Added:
  python2-markdown/repos/community-any/
  python2-markdown/repos/community-any/PKGBUILD
    (from rev 664042, python2-markdown/trunk/PKGBUILD)

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

Copied: python2-markdown/repos/community-any/PKGBUILD (from rev 664042, 
python2-markdown/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2020-07-16 06:25:48 UTC (rev 664043)
@@ -0,0 +1,40 @@
+# Maintainer: Eli Schwartz <eschwa...@archlinux.org>
+# Maintainer: Kyle Keen <keen...@gmail.com>
+# Contributor: Angel Velasquez <an...@archlinux.org>
+# Contributor: Andrew Antle <andrew dot antle at gmail dot com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Chaiwat Suttipongsakul <cwt at bashell dot com>
+
+pkgname=python2-markdown
+_pkgbasename=Markdown
+pkgver=3.1.1
+pkgrel=5
+pkgdesc="Python implementation of John Gruber's Markdown."
+arch=('any')
+url='https://python-markdown.github.io/'
+license=('BSD')
+depends=('python2-setuptools')
+checkdepends=('python2-yaml')
+source=("https://files.pythonhosted.org/packages/source/M/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz";)
+md5sums=('d84732ecc65b3a1bff693d9d4c24277f')
+b2sums=('9fd024f64f7aaa774a49f60e312e47bbc2ff0f368f083e4dfd0c38d1f12839dfcf3455f1d0c8cb0b9c851fe0d3a779c70784859f1682703bd6022d57b6548235')
+
+build() {
+    cd "$srcdir/$_pkgbasename-$pkgver"
+
+    python2 setup.py build
+}
+
+check() {
+    cd "$srcdir/$_pkgbasename-$pkgver"
+
+    python2 -m unittest discover tests
+}
+
+package() {
+    cd "$srcdir/$_pkgbasename-$pkgver"
+
+    python2 setup.py install --root="$pkgdir" --optimize=0
+    mv "$pkgdir/usr/bin/markdown_py" "$pkgdir/usr/bin/markdown_py2"
+    install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Reply via email to