[arch-commits] Commit in python-markdown-it-py/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 16:46:54 UTC 2020
Date: Monday, November 9, 2020 @ 16:46:53
Author: foutrelis
Revision: 747523
archrelease: copy trunk to community-staging-any
Added:
python-markdown-it-py/repos/community-staging-any/
python-markdown-it-py/repos/community-staging-any/PKGBUILD
(from rev 747522, python-markdown-it-py/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-markdown-it-py/repos/community-staging-any/PKGBUILD (from rev 747522, python-markdown-it-py/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:46:53 UTC (rev 747523)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=markdown-it-py
+pkgname=python-$_pkgname
+pkgver=0.5.6
+pkgrel=2
+pkgdesc='Python port of markdown-it. Markdown parsing, done right!'
+arch=('any')
+url='https://github.com/executablebooks/markdown-it-py'
+license=('MIT')
+depends=('python-attrs')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-regressions' 'python-pytest-benchmark' 'python-psutil')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('0ab604d377c42991b420238688014615213748d079a56b3176d08524a38a54d8346f3f581d8acb11c211fefbb08c210eac76c448a93ffb15171ec355f01c1b39')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ pytest
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list