[arch-commits] Commit in python-commonmark/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Nov 30 15:26:44 UTC 2021
Date: Tuesday, November 30, 2021 @ 15:26:44
Author: foutrelis
Revision: 1057800
archrelease: copy trunk to community-staging-any
Added:
python-commonmark/repos/community-staging-any/
python-commonmark/repos/community-staging-any/PKGBUILD
(from rev 1057799, python-commonmark/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-commonmark/repos/community-staging-any/PKGBUILD (from rev 1057799, python-commonmark/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 15:26:44 UTC (rev 1057800)
@@ -0,0 +1,41 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-commonmark
+pkgver=0.9.1
+pkgrel=4
+pkgdesc='Python parser for the CommonMark Markdown spec'
+url='https://pypi.org/project/commonmark/'
+arch=('any')
+license=('BSD')
+depends=('python-docutils' 'python-future')
+makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme')
+checkdepends=('python-hypothesis')
+options=('!makeflags')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/readthedocs/commonmark.py/archive/${pkgver}.tar.gz)
+sha256sums=('b5d5be6af35a183c3f915d714b31b61e6918894051114419f9ac0bbb715bf4c6')
+sha512sums=('a6de0b384247ff79fe326012bd1fc71135e6ae5bc7b6a15d5402969a94f81fdd802f1a9d557c504eb74bfb3fea68f55355a70a6e0112a620cc285cf9039892e4')
+
+build() {
+ cd commonmark.py-${pkgver}
+ python setup.py build
+ make -C docs man text SPHINXBUILD=sphinx-build
+}
+
+check() {
+ cd commonmark.py-${pkgver}
+ export PYTHONPATH=.
+ python commonmark/tests/unit_tests.py
+ python setup.py test
+}
+
+package() {
+ cd commonmark.py-${pkgver}
+ python setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 644 README.rst CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 docs/_build/man/commonmark-py.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+ mv "${pkgdir}/usr/bin/cmark"{,-py3}
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list