[arch-commits] Commit in python-paste/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 20:31:07 UTC 2019
Date: Saturday, October 26, 2019 @ 20:31:07
Author: felixonmars
Revision: 520582
archrelease: copy trunk to community-staging-any
Added:
python-paste/repos/community-staging-any/
python-paste/repos/community-staging-any/PKGBUILD
(from rev 520581, python-paste/trunk/PKGBUILD)
----------+
PKGBUILD | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
Copied: python-paste/repos/community-staging-any/PKGBUILD (from rev 520581, python-paste/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:31:07 UTC (rev 520582)
@@ -0,0 +1,63 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: David Campbell <davekong at archlinux.us>
+# Contributor: Cilyan Olowen <gaknar at gmail.com>
+
+pkgbase=python-paste
+pkgname=(python-paste python2-paste)
+pkgver=3.2.2
+pkgrel=2
+pkgdesc="Tools for using a Web Server Gateway Interface stack"
+arch=('any')
+url="http://pythonpaste.org/index.html"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-flup' 'python2-flup'
+ 'python2-openid')
+source=("https://files.pythonhosted.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz")
+sha512sums=('c9a51034eafa6280623877aa3849b3c8a61e05dfd6527e2aa5daf6f6917b8cecac357e4ec0d7f9397e2fd089203294e7e0520239667e16da6ca5d9fec453b8a9')
+
+prepare() {
+ cp -a Paste-${pkgver}{,-py2}
+
+ cd Paste-${pkgver}-py2
+ sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ $(find . -name '*.py')
+}
+
+build() {
+ cd "$srcdir"/Paste-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/Paste-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/Paste-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/Paste-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-paste() {
+ depends=('python-six')
+ optdepends=('python-flup: WSGI utilities')
+
+ cd Paste-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
+
+package_python2-paste() {
+ depends=('python2-six')
+ optdepends=('python2-flup: WSGI utilities'
+ 'python2-openid: Support for OpenID')
+
+ cd Paste-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
More information about the arch-commits
mailing list