[arch-commits] Commit in python-queuelib/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 18:30:14 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:30:13
  Author: felixonmars
Revision: 349002

archrelease: copy trunk to community-staging-any

Added:
  python-queuelib/repos/community-staging-any/
  python-queuelib/repos/community-staging-any/PKGBUILD
    (from rev 349000, python-queuelib/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: python-queuelib/repos/community-staging-any/PKGBUILD (from rev 349000, python-queuelib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 18:30:13 UTC (rev 349002)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: PyroDevil <p dot devil at gmail dot com>
+
+pkgbase=python-queuelib
+pkgname=('python2-queuelib' 'python-queuelib')
+pkgver=1.5.0
+pkgrel=2
+pkgdesc="Collection of persistent (disk-based) queues."
+arch=('any')
+license=('BSD')
+url="http://scrapy.org"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/scrapy/queuelib/archive/v$pkgver.tar.gz")
+sha512sums=('8217dfa82c4a7c2449277d81f553b1dd5b82fa34ba0c69ed98bcc146940e8afb79251715be9ec61c962a78292f14d83dac862ba021485573c9069e85710d5998')
+
+prepare() {
+  cp -a queuelib-$pkgver{,-py2}
+}
+
+check() {
+  cd "$srcdir"/queuelib-$pkgver
+  py.test
+
+  cd "$srcdir"/queuelib-$pkgver-py2
+  py.test2
+}
+
+package_python-queuelib() {
+  depends=('python')
+
+  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 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