[arch-commits] Commit in python-markdown/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 18:15:50 UTC 2021
Date: Tuesday, November 30, 2021 @ 18:15:50
Author: felixonmars
Revision: 1057883
archrelease: copy trunk to community-staging-any
Added:
python-markdown/repos/community-staging-any/
python-markdown/repos/community-staging-any/PKGBUILD
(from rev 1057882, python-markdown/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-markdown/repos/community-staging-any/PKGBUILD (from rev 1057882, python-markdown/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 18:15:50 UTC (rev 1057883)
@@ -0,0 +1,38 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Maintainer: Caleb Maclennan <caleb at alerque.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.6
+pkgrel=2
+pkgdesc="Python implementation of John Gruber's Markdown."
+arch=('any')
+url='https://python-markdown.github.io/'
+license=('BSD')
+depends=('python-importlib-metadata')
+makedepends=('python-setuptools')
+checkdepends=('python-yaml')
+source=("https://files.pythonhosted.org/packages/source/M/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz")
+sha256sums=('76df8ae32294ec39dcf89340382882dfa12975f87f45c3ed1ecdb1e8cefc7006')
+
+build() {
+ cd "$_pkgbasename-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$_pkgbasename-$pkgver"
+ [[ $(python -c "import markdown; print(markdown.version)") == "$pkgver" ]]
+ [[ $(python -c "import markdown; print(markdown.markdown('*test*'))") == "<p><em>test</em></p>" ]]
+ python -m unittest discover tests
+}
+
+package() {
+ cd "$_pkgbasename-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python-markdown/LICENSE"
+}
More information about the arch-commits
mailing list