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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:03:25 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:03:25
  Author: felixonmars
Revision: 748418

archrelease: copy trunk to community-staging-any

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

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

Copied: python-markdown2/repos/community-staging-any/PKGBUILD (from rev 748416, python-markdown2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:03:25 UTC (rev 748418)
@@ -0,0 +1,36 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=python-markdown2
+pkgver=2.3.9
+pkgrel=2
+pkgdesc='A fast and complete implementation of Markdown in Python'
+arch=('any')
+url='https://github.com/trentm/python-markdown2'
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-tox-current-env' 'python-pygments')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('b4256310f16e7b2a5a3a1d48ebcb0bd90cda738e4586ed9b7919810e2c100394872c5d4301293f5f95c289666f847c7023fa078ee925a16920a72baed2554350')
+
+build() {
+  cd $pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  tox -e py39 --current-env
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list