[arch-commits] Commit in python-cmarkgfm/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Tue May 12 19:24:37 UTC 2020


    Date: Tuesday, May 12, 2020 @ 19:24:37
  Author: jelle
Revision: 627188

upgpkg: python-cmarkgfm 0.4.2-8

Remove unused python2 module

Modified:
  python-cmarkgfm/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++------------------
 1 file changed, 6 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-12 19:21:58 UTC (rev 627187)
+++ PKGBUILD	2020-05-12 19:24:37 UTC (rev 627188)
@@ -1,15 +1,15 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-cmarkgfm
-pkgname=(python-cmarkgfm python2-cmarkgfm)
+pkgname=python-cmarkgfm
 pkgver=0.4.2
-pkgrel=7
+pkgrel=8
 pkgdesc="Minimal bindings to GitHub's fork of cmark"
 url="https://github.com/theacodes/cmarkgfm"
 license=('MIT')
 arch=('x86_64')
-makedepends=('cmark-gfm' 'python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+depends=('cmark-gfm' 'python-cffi')
+makedepends=('cmark-gfm' 'python-setuptools' 'python-cffi')
+checkdepends=('python-pytest-runner')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/theacodes/cmarkgfm/archive/$pkgver.tar.gz"
         cmark-gfm-0.28.3.gfm.17.patch
         cmark-gfm-0.28.3.gfm.19.patch)
@@ -28,27 +28,15 @@
 build() {
   cd cmarkgfm-$pkgver
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd cmarkgfm-$pkgver
   python setup.py pytest
-  python2 setup.py pytest
 }
 
-package_python-cmarkgfm() {
-  depends=('cmark-gfm' 'python-cffi')
-
+package() {
   cd cmarkgfm-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-cmarkgfm() {
-  depends=('cmark-gfm' 'python2-cffi')
-
-  cd cmarkgfm-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}


More information about the arch-commits mailing list