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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 23:09:30 UTC 2021


    Date: Tuesday, November 30, 2021 @ 23:09:30
  Author: felixonmars
Revision: 1059073

archrelease: copy trunk to community-staging-any

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

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

Copied: python-mdit_py_plugins/repos/community-staging-any/PKGBUILD (from rev 1059072, python-mdit_py_plugins/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 23:09:30 UTC (rev 1059073)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=mdit-py-plugins
+pkgname=python-mdit_py_plugins
+pkgver=0.2.8
+pkgrel=2
+pkgdesc='Collection of core plugins for markdown-it-py'
+arch=('any')
+url='https://github.com/executablebooks/mdit-py-plugins'
+license=('MIT')
+depends=('python-markdown-it-py')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-regressions')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('61a8f5f729e385faded47d88cef0745cb195f410a93382712a675a690f2fdf7518107370c09ee813756924acdd380b43b274fbb153c1600fabac46c2d0e3f426')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python -m 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