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

Felix Yan felixonmars at gemini.archlinux.org
Thu Jan 20 23:35:54 UTC 2022


    Date: Thursday, January 20, 2022 @ 23:35:54
  Author: felixonmars
Revision: 1111596

archrelease: copy trunk to community-staging-x86_64

Added:
  python-cmarkgfm/repos/community-staging-x86_64/
  python-cmarkgfm/repos/community-staging-x86_64/PKGBUILD
    (from rev 1111595, python-cmarkgfm/trunk/PKGBUILD)

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

Copied: python-cmarkgfm/repos/community-staging-x86_64/PKGBUILD (from rev 1111595, python-cmarkgfm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-20 23:35:54 UTC (rev 1111596)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cmarkgfm
+pkgver=0.6.0
+pkgrel=4
+pkgdesc="Minimal bindings to GitHub's fork of cmark"
+url="https://github.com/theacodes/cmarkgfm"
+license=('MIT')
+arch=('x86_64')
+depends=('cmark-gfm' 'python-cffi')
+makedepends=('cmark-gfm' 'python-setuptools' 'python-cffi')
+checkdepends=('python-pytest-runner')
+source=("https://github.com/theacodes/cmarkgfm/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('de4653ae4b27e55b98f885b67d50f71cffa92f13511f1a5efb885a474f5aefb924ce6eb019f4241499b66ad43a7e0630053a7743e844e5c34c652050c0f83ef2')
+
+prepare() {
+  cd cmarkgfm-$pkgver
+  sed -e '/include_dirs=/a libraries=["cmark-gfm", "cmark-gfm-extensions"],' \
+      -i src/cmarkgfm/build_cmark.py
+}
+
+build() {
+  cd cmarkgfm-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd cmarkgfm-$pkgver
+  # test failure in new cmark-gfm
+  python setup.py pytest --addopts "--deselect tests/test_cmark.py::test_github_flavored_markdown_to_html_tasklist"
+}
+
+package() {
+  cd cmarkgfm-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}



More information about the arch-commits mailing list