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

Felix Yan felixonmars at archlinux.org
Thu Jul 14 06:44:10 UTC 2016


    Date: Thursday, July 14, 2016 @ 06:44:10
  Author: felixonmars
Revision: 182856

upgpkg: python-pypandoc 1.2.0-1

Modified:
  python-pypandoc/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-07-14 06:39:20 UTC (rev 182855)
+++ PKGBUILD	2016-07-14 06:44:10 UTC (rev 182856)
@@ -3,7 +3,7 @@
 
 pkgbase=python-pypandoc
 pkgname=('python-pypandoc' 'python2-pypandoc')
-pkgver=1.1.3
+pkgver=1.2.0
 pkgrel=1
 pkgdesc="Thin wrapper for pandoc"
 arch=('any')
@@ -15,37 +15,40 @@
 sha512sums=('SKIP')
 
 prepare() {
+  # We don't really need pip and wheel at runtime
+  sed -i "s/install_requires = .*/install_requires = ['setuptools'],/" pypandoc/setup.py
+
   cp -a pypandoc{,-py2}
 }
 
 build() {
-  cd "$srcdir/pypandoc"
+  cd "$srcdir"/pypandoc
   python setup.py build
 
-  cd "$srcdir/pypandoc-py2"
+  cd "$srcdir"/pypandoc-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir/pypandoc"
+  cd "$srcdir"/pypandoc
   python setup.py test
 
-  cd "$srcdir/pypandoc-py2"
+  cd "$srcdir"/pypandoc-py2
   python2 setup.py test
 }
 
 package_python-pypandoc() {
-  depends=('python' 'pandoc')
+  depends=('python-setuptools' 'pandoc')
 
   cd pypandoc
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-pypandoc() {
-  depends=('python2' 'pandoc')
+  depends=('python2-setuptools' 'pandoc')
 
   cd pypandoc-py2
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  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