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

Felix Yan felixonmars at archlinux.org
Sun Jul 8 13:43:27 UTC 2018


    Date: Sunday, July 8, 2018 @ 13:43:26
  Author: felixonmars
Revision: 354900

archrelease: copy trunk to community-staging-any

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

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

Copied: python-routes/repos/community-staging-any/PKGBUILD (from rev 354896, python-routes/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-08 13:43:26 UTC (rev 354900)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: SpepS <dreamspepser at yahoo.it>
+# Contributor: James Bulmer <nekinie at gmail.com>
+
+pkgbase=python-routes
+pkgname=(python-routes python2-routes)
+pkgver=2.4.1
+pkgrel=2
+pkgdesc="Routing recognition and generation tools"
+arch=("any")
+url="https://pypi.python.org/pypi/Routes"
+license=("custom:BSD")
+makedepends=('python-setuptools' 'python2-setuptools' 'python-repoze.lru' 'python2-repoze.lru' 'python-six' 'python2-six')
+checkdepends=('python-nose' 'python2-nose' 'python-webob' 'python2-webob' 'python-coverage' 'python2-coverage')
+source=("https://pypi.io/packages/source/R/Routes/Routes-$pkgver.tar.gz")
+md5sums=('c058dff6832941dec47e0d0052548ad8')
+
+prepare() {
+  cp -a Routes-${pkgver}{,-py2}
+}
+
+build() {
+  cd "$srcdir"/Routes-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/Routes-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/Routes-$pkgver
+  nosetests3
+
+  cd "$srcdir"/Routes-$pkgver-py2
+  nosetests2
+}
+
+package_python-routes() {
+  depends=("python-repoze.lru" 'python-six')
+
+  cd "$srcdir"/Routes-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-routes() {
+  depends=("python2-repoze.lru" 'python2-six')
+
+  cd "$srcdir"/Routes-$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