Date: Thursday, April 6, 2023 @ 02:13:14
  Author: felixonmars
Revision: 1438067

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 1438066, python-markdown-it-py/trunk/PKGBUILD)

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

Copied: python-markdown-it-py/repos/community-staging-any/PKGBUILD (from rev 
1438066, python-markdown-it-py/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 02:13:14 UTC (rev 1438067)
@@ -0,0 +1,38 @@
+# Maintainer: Filipe LaĆ­ns (FFY00) <[email protected]>
+
+_pkgname=markdown-it-py
+pkgname=python-$_pkgname
+pkgver=2.2.0
+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-mdurl')
+optdepends=('python-mdit_py_plugins: core plugins')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-regressions' 
'python-pytest-benchmark' 'python-psutil' 'python-mdit_py_plugins' 
'python-linkify-it-py')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('84d6c15084bf33bdecdcbc8419322f2898bde20de6baeaee6c66c4e6ad9e47dfb8a14e2b1fcf71b8c42e7b61a7caed119919faf0faf6765aad85c186d91fe9d5')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python -m build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python -m pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python -m installer -d "$pkgdir" dist/*.whl
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to