Date: Saturday, September 17, 2016 @ 08:38:27
  Author: felixonmars
Revision: 189824

upgpkg: python-praw 3.5.0-2

Modified:
  python-praw/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-09-17 07:50:10 UTC (rev 189823)
+++ PKGBUILD    2016-09-17 08:38:27 UTC (rev 189824)
@@ -4,7 +4,7 @@
 pkgbase=python-praw
 pkgname=('python-praw' 'python2-praw')
 pkgver=3.5.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python Reddit API Wrapper that allows for simple access to reddit's 
API"
 arch=('any')
 license=('GPL')
@@ -19,15 +19,17 @@
 md5sums=('SKIP')
 
 prepare() {
-  sed -e 's/mock ==1.0.1/mock/' -i praw/setup.py
+  sed -e 's/mock ==1.0.1/mock/' \
+      -e 's/update_checker ==0.11/update_checker >=0.11/' \
+      -i praw/setup.py
   cp -a praw{,-py2}
 }
 
 check() {
-  cd "$srcdir/praw"
+  cd "$srcdir"/praw
   python setup.py test
 
-  cd "$srcdir/praw-py2"
+  cd "$srcdir"/praw-py2
   python2 setup.py test
 }
 
@@ -34,15 +36,15 @@
 package_python-praw() {
   depends=('python-decorator' 'python-requests' 'python-six' 
'python-update_checker')
 
-  cd "${srcdir}/praw"
-  python setup.py install --root="${pkgdir}" --optimize=1
+  cd praw
+  python setup.py install --root="$pkgdir" --optimize=1
 }
 
 package_python2-praw() {
   depends=('python2-decorator' 'python2-requests' 'python2-six' 
'python2-update_checker')
 
-  cd "${srcdir}/praw-py2"
-  python2 setup.py install --root="${pkgdir}" --optimize=1
+  cd praw-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
 
-  mv "$pkgdir/usr/bin/praw-multiprocess"{,2}
+  mv "$pkgdir"/usr/bin/praw-multiprocess{,2}
 }

Reply via email to