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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 19:15:04 UTC 2021


    Date: Tuesday, November 30, 2021 @ 19:15:03
  Author: foutrelis
Revision: 1057901

archrelease: copy trunk to community-staging-any

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

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

Copied: python-recommonmark/repos/community-staging-any/PKGBUILD (from rev 1057900, python-recommonmark/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 19:15:03 UTC (rev 1057901)
@@ -0,0 +1,42 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pyname=recommonmark
+pkgname=python-$_pyname
+pkgver=0.7.1
+pkgrel=2
+pkgdesc='Markdown parser for docutils'
+url="https://$_pyname.readthedocs.io/"
+arch=(any)
+license=(MIT)
+_pydeps=(commonmark
+         docutils
+         sphinx)
+depends=(python
+         "${_pydeps[@]/#/python-}")
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_archive.tar.gz")
+sha256sums=('bdb4db649f2222dcd8d2d844f0006b958d627f732415d399791ee436a3686d67')
+
+build() {
+	cd "$_archive"
+	python setup.py build
+	make -C docs text man
+}
+
+check() {
+	cd "$_archive"
+	pytest \
+		--deselect tests/test_sphinx.py
+}
+
+package() {
+	cd "$_archive"
+	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" license.md
+	install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md CHANGELOG.md
+	install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" docs/_build/text/*.txt
+	install -Dm0644 -t "$pkgdir/usr/share/man/man1/" "docs/_build/man/$_pyname.1"
+}



More information about the arch-commits mailing list