[arch-commits] Commit in python-routes/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Wed Jun 10 14:42:26 UTC 2015
Date: Wednesday, June 10, 2015 @ 16:42:26
Author: fyan
Revision: 135136
upgpkg: python-routes 2.1-2
add python 3 counterpart
Modified:
python-routes/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++------
1 file changed, 24 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-06-10 14:39:12 UTC (rev 135135)
+++ PKGBUILD 2015-06-10 14:42:26 UTC (rev 135136)
@@ -4,32 +4,50 @@
# Contributor: James Bulmer <nekinie at gmail.com>
pkgbase=python-routes
-pkgname=python2-routes
+pkgname=(python-routes python2-routes)
pkgver=2.1
-pkgrel=1
+pkgrel=2
pkgdesc="Routing recognition and generation tools"
arch=("any")
url="https://pypi.python.org/pypi/Routes"
license=("custom:BSD")
-makedepends=('python2-setuptools' 'python2-repoze.lru')
-checkdepends=('python2-nose' 'python2-webob' 'python2-coverage')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-repoze.lru' 'python2-repoze.lru')
+checkdepends=('python-nose' 'python2-nose' 'python-webob' 'python2-webob' 'python-coverage' 'python2-coverage')
source=("https://pypi.python.org/packages/source/R/Routes/Routes-${pkgver}.tar.gz")
md5sums=('e6e463318a9dc6ad2f1b3040e998f0b4')
+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")
+
+ 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" "python2-repoze.lru")
+ depends=("python2-repoze.lru")
- cd "${srcdir}/Routes-${pkgver}/"
+ 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