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

Felix Yan fyan at archlinux.org
Sun Sep 20 03:13:38 UTC 2015


    Date: Sunday, September 20, 2015 @ 05:13:38
  Author: fyan
Revision: 141138

archrelease: copy trunk to community-staging-any

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

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

Copied: python-queuelib/repos/community-staging-any/PKGBUILD (from rev 141137, python-queuelib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-20 03:13:38 UTC (rev 141138)
@@ -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.2.2
+pkgrel=4
+pkgdesc="Collection of persistent (disk-based) queues."
+arch=('any')
+license=('BSD')
+url="http://scrapy.org"
+makedepends=('git' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/scrapy/queuelib.git#tag=v${pkgver}")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a queuelib{,-py2}
+}
+
+check() {
+  cd "$srcdir/queuelib"
+  nosetests3
+
+  cd "$srcdir/queuelib-py2"
+  nosetests2
+}
+
+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"
+}
+
+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"
+}



More information about the arch-commits mailing list