[arch-commits] Commit in python-queuelib/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun May 20 05:36:36 UTC 2018
Date: Sunday, May 20, 2018 @ 05:36:35
Author: felixonmars
Revision: 325038
upgpkg: python-queuelib 1.5.0-1
Modified:
python-queuelib/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-20 05:34:20 UTC (rev 325037)
+++ PKGBUILD 2018-05-20 05:36:35 UTC (rev 325038)
@@ -4,26 +4,26 @@
pkgbase=python-queuelib
pkgname=('python2-queuelib' 'python-queuelib')
-pkgver=1.4.2
-pkgrel=2
+pkgver=1.5.0
+pkgrel=1
pkgdesc="Collection of persistent (disk-based) queues."
arch=('any')
license=('BSD')
url="http://scrapy.org"
-makedepends=('git' 'python-setuptools' 'python2-setuptools')
+makedepends=('python-setuptools' 'python2-setuptools')
checkdepends=('python-pytest' 'python2-pytest')
-source=("git+https://github.com/scrapy/queuelib.git#tag=v${pkgver}")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/scrapy/queuelib/archive/v$pkgver.tar.gz")
+sha512sums=('8217dfa82c4a7c2449277d81f553b1dd5b82fa34ba0c69ed98bcc146940e8afb79251715be9ec61c962a78292f14d83dac862ba021485573c9069e85710d5998')
prepare() {
- cp -a queuelib{,-py2}
+ cp -a queuelib-$pkgver{,-py2}
}
check() {
- cd "$srcdir/queuelib"
+ cd "$srcdir"/queuelib-$pkgver
py.test
- cd "$srcdir/queuelib-py2"
+ cd "$srcdir"/queuelib-$pkgver-py2
py.test2
}
@@ -30,17 +30,17 @@
package_python-queuelib() {
depends=('python')
- cd "${srcdir}/queuelib"
- python setup.py install --root="${pkgdir}" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -D -m644 "README.rst" "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
+ cd queuelib-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 "README.rst" "$pkgdir/usr/share/doc/$pkgname/README.rst"
}
package_python2-queuelib() {
depends=('python2')
- cd "${srcdir}/queuelib-py2"
- python2 setup.py install --root="${pkgdir}" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -D -m644 "README.rst" "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
+ cd queuelib-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 "README.rst" "$pkgdir/usr/share/doc/$pkgname/README.rst"
}
More information about the arch-commits
mailing list