Date: Tuesday, March 13, 2018 @ 23:43:28 Author: felixonmars Revision: 307494
upgpkg: python-betamax 0.8.1-1 Modified: python-betamax/trunk/PKGBUILD ----------+ PKGBUILD | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-03-13 23:42:30 UTC (rev 307493) +++ PKGBUILD 2018-03-13 23:43:28 UTC (rev 307494) @@ -3,19 +3,19 @@ pkgbase=python-betamax pkgname=('python-betamax' 'python2-betamax') -pkgver=0.8.0 -pkgrel=2 +pkgver=0.8.1 +pkgrel=1 pkgdesc="A VCR imitation for python-requests" arch=('any') license=('GPL') url='https://github.com/sigmavirus24/betamax' -makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'git') +makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests') checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python2-mock') -source=("git+https://github.com/sigmavirus24/betamax.git#tag=$pkgver") -md5sums=('SKIP') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/sigmavirus24/betamax/archive/$pkgver.tar.gz") +sha512sums=('3888aa5f1e249faf496a32c03fb7d37096d7bbde573048c2ff3d1ba0fa03ebaeb4ff4e72191478da5f1a04d813204e31d3897469bd5f5eea4c5db2c72aae1374') prepare() { - cp -a betamax{,-py2} + cp -a betamax-$pkgver{,-py2} } check() { @@ -22,10 +22,10 @@ # Failure about isinstance urllib3.response.HTTPResponse affects only tests. # We need to investigate it more. - cd "$srcdir"/betamax + cd "$srcdir"/betamax-$pkgver python setup.py pytest || warning "Tests failed" - cd "$srcdir"/betamax-py2 + cd "$srcdir"/betamax-$pkgver-py2 python2 setup.py pytest || warning "Tests failed" } @@ -32,7 +32,7 @@ package_python-betamax() { depends=('python-requests') - cd betamax + cd betamax-$pkgver python setup.py install --root="$pkgdir" --optimize=1 install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } @@ -40,7 +40,7 @@ package_python2-betamax() { depends=('python2-requests') - cd betamax-py2 + cd betamax-$pkgver-py2 python2 setup.py install --root="$pkgdir" --optimize=1 install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }