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

Jelle van der Waa jelle at archlinux.org
Tue May 12 18:40:42 UTC 2020


    Date: Tuesday, May 12, 2020 @ 18:40:42
  Author: jelle
Revision: 627130

upgpkg: python-pypandoc 1.5-2

Remove unused python2 module

Modified:
  python-pypandoc/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++-----------------------
 1 file changed, 5 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-12 18:25:41 UTC (rev 627129)
+++ PKGBUILD	2020-05-12 18:40:42 UTC (rev 627130)
@@ -1,14 +1,14 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pypandoc
-pkgname=('python-pypandoc' 'python2-pypandoc')
+pkgname=python-pypandoc
 pkgver=1.5
-pkgrel=1
+pkgrel=2
 pkgdesc="Thin wrapper for pandoc"
 arch=('any')
 license=('MIT')
 url="https://github.com/bebraw/pypandoc"
-makedepends=('python-setuptools' 'python2-setuptools' 'pandoc')
+depends=('python-setuptools' 'pandoc')
+makedepends=('python-setuptools' 'pandoc')
 checkdepends=('texlive-core' 'texlive-latexextra' 'pandoc-citeproc')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/bebraw/pypandoc/archive/$pkgver.tar.gz")
 sha512sums=('bc1a18115827ac0868b887fa3c9be46736670de8f095cb49b444e61f66779497db9a08bdac0de30f821a64cd6bad195f1d3a29d0159e6e3ad050a78ca0ecea82')
@@ -16,38 +16,20 @@
 prepare() {
   # We don't really need pip and wheel at runtime
   sed -i "s/install_requires = .*/install_requires = ['setuptools'],/" pypandoc-$pkgver/setup.py
-
-  cp -a pypandoc-$pkgver{,-py2}
 }
 
 build() {
   cd "$srcdir"/pypandoc-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pypandoc-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/pypandoc-$pkgver
   python setup.py test
-
-  cd "$srcdir"/pypandoc-$pkgver-py2
-  python2 setup.py test
 }
 
-package_python-pypandoc() {
-  depends=('python-setuptools' 'pandoc')
-
+package() {
   cd pypandoc-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-pypandoc() {
-  depends=('python2-setuptools' 'pandoc')
-
-  cd pypandoc-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list