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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 13:59:42 UTC 2020


    Date: Monday, November 9, 2020 @ 13:59:41
  Author: foutrelis
Revision: 746925

archrelease: copy trunk to community-staging-any

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

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

Copied: python-markdown/repos/community-staging-any/PKGBUILD (from rev 746924, python-markdown/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 13:59:41 UTC (rev 746925)
@@ -0,0 +1,39 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Angel Velasquez <angvp at 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=python-markdown
+_pkgbasename=Markdown
+pkgver=3.3
+pkgrel=2
+pkgdesc="Python implementation of John Gruber's Markdown."
+arch=('any')
+url='https://python-markdown.github.io/'
+license=('BSD')
+depends=('python' 'python-setuptools')
+checkdepends=('python-yaml')
+source=("https://files.pythonhosted.org/packages/source/M/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz")
+md5sums=('76eb34a058bb8b637ccadc4ce384bae4')
+
+build() {
+  cd "$srcdir/$_pkgbasename-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir/$_pkgbasename-$pkgver"
+  python -m unittest discover tests
+}
+
+package() {
+  cd "$srcdir/$_pkgbasename-$pkgver"
+  python3 setup.py install --root="$pkgdir" --optimize=0
+  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python-markdown/LICENSE"
+}
+
+check_python-markdown() {
+  [[ $(python -c "import markdown; print(markdown.version)") == "$pkgver" ]]
+  [[ $(python -c "import markdown; print(markdown.markdown('*test*'))") == "<p><em>test</em></p>" ]]
+}



More information about the arch-commits mailing list