[arch-commits] Commit in python-routes/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 20:10:03 UTC 2019
Date: Friday, October 25, 2019 @ 20:10:02
Author: felixonmars
Revision: 519766
archrelease: copy trunk to community-staging-any
Added:
python-routes/repos/community-staging-any/
python-routes/repos/community-staging-any/PKGBUILD
(from rev 519765, python-routes/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-routes/repos/community-staging-any/PKGBUILD (from rev 519765, python-routes/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 20:10:02 UTC (rev 519766)
@@ -0,0 +1,52 @@
+# 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=3
+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