[arch-commits] Commit in python-markdown-math/repos/community-any (PKGBUILD PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Fri Jun 8 02:17:19 UTC 2018


    Date: Friday, June 8, 2018 @ 02:17:19
  Author: eschwartz
Revision: 341919

archrelease: copy trunk to community-any

Added:
  python-markdown-math/repos/community-any/PKGBUILD
    (from rev 341918, python-markdown-math/trunk/PKGBUILD)
Deleted:
  python-markdown-math/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   61 +++++++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 43 insertions(+), 18 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-08 02:17:02 UTC (rev 341918)
+++ PKGBUILD	2018-06-08 02:17:19 UTC (rev 341919)
@@ -1,18 +0,0 @@
-# Maintainer: Jiachen YANG <farseerfc at gmail.com>
-# AUR Maintainer: Marcus Scheunemann
-pkgname=python-markdown-math
-pkgver=0.5
-pkgrel=1
-pkgdesc="Math extension for Python-Markdown"
-arch=('any')
-url="https://github.com/mitya57/python-markdown-math"
-license=("custom:BSD")
-makedepends=('python-setuptools')
-source=("https://github.com/mitya57/python-markdown-math/archive/${pkgver}.tar.gz")
-sha256sums=('2ec21c037e514761b25d25837a05593be09375a74ce8507c748a836e8ab87e11')
-
-package() {
-    cd "python-markdown-math-${pkgver}"
-    python setup.py install --root="${pkgdir}/" --optimize=1
-    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-markdown-math/repos/community-any/PKGBUILD (from rev 341918, python-markdown-math/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-06-08 02:17:19 UTC (rev 341919)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Jiachen YANG <farseerfc at gmail.com>
+# AUR Maintainer: Marcus Scheunemann
+
+pkgbase=python-markdown-math
+pkgname=('python-markdown-math' 'python2-markdown-math')
+pkgver=0.5
+pkgrel=2
+pkgdesc="Math extension for Python-Markdown"
+arch=('any')
+url="https://github.com/mitya57/python-markdown-math"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${pkgbase:0:1}/${pkgbase}/${pkgbase}-${pkgver}.tar.gz"{,.asc}
+        # license not in PyPI https://github.com/mitya57/python-markdown-math/issues/20
+        "${pkgbase}-${pkgver}.LICENSE::${url}/raw/${pkgver}/LICENSE")
+sha256sums=('8f8803c92ac0847d18bd82a51fdb6acec90b2b54a4990650e627a0d4d3a78445'
+            'SKIP'
+            '790098f2d689d037aed29c5e11d185390bc1c122a6b97f91c0ccfa90f6fcdbae')
+validpgpkeys=('F24299FF1BBC9018B906A4CB6026936D2F1C8AE0') # Dmitry Shachnev <mitya57 at debian.org>
+
+build() {
+    cd "python-markdown-math-${pkgver}"
+
+    python setup.py build
+    python2 setup.py build
+}
+
+package_python-markdown-math() {
+    depends=('python')
+
+    cd "python-markdown-math-${pkgver}"
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 ../${pkgbase}-${pkgver}.LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-markdown-math() {
+    depends=('python2')
+
+    cd "python-markdown-math-${pkgver}"
+    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 ../${pkgbase}-${pkgver}.LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list