[arch-commits] Commit in python-prawcore/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu May 4 03:47:15 UTC 2017
Date: Thursday, May 4, 2017 @ 03:47:14
Author: felixonmars
Revision: 226720
upgpkg: python-prawcore 0.10.1-1
Modified:
python-prawcore/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-04 03:46:04 UTC (rev 226719)
+++ PKGBUILD 2017-05-04 03:47:14 UTC (rev 226720)
@@ -3,27 +3,27 @@
pkgbase=python-prawcore
pkgname=('python-prawcore' 'python2-prawcore')
-pkgver=0.8.0
+pkgver=0.10.1
pkgrel=1
pkgdesc="Low-level communication layer for PRAW 4+."
arch=('any')
license=('BSD')
url="https://github.com/praw-dev/prawcore"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'git')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
checkdepends=('python-mock' 'python2-mock' 'python-betamax-matchers' 'python2-betamax-matchers'
'python-betamax-serializers' 'python2-betamax-serializers')
-source=("git+https://github.com/praw-dev/prawcore.git#tag=v$pkgver")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz")
+sha512sums=('db7a2276dfa06d4f5424e25eec6f5e3370970e6a0249b69db7338bce9f298db5ef3fe5733735fa86219e66b0311b9c580a24f24e544bbcb5dd0bf8f673a18f87')
prepare() {
- cp -a prawcore{,-py2}
+ cp -a prawcore-$pkgver{,-py2}
}
check() {
- cd "$srcdir"/prawcore
+ cd "$srcdir"/prawcore-$pkgver
python setup.py test
- cd "$srcdir"/prawcore-py2
+ cd "$srcdir"/prawcore-$pkgver-py2
python2 setup.py test
}
@@ -30,7 +30,7 @@
package_python-prawcore() {
depends=('python-requests')
- cd prawcore
+ cd prawcore-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
@@ -38,7 +38,7 @@
package_python2-prawcore() {
depends=('python2-requests')
- cd prawcore-py2
+ cd prawcore-$pkgver-py2
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