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

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 20:57:00 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:56:59
  Author: foutrelis
Revision: 520684

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pastedeploy/repos/community-staging-any/PKGBUILD (from rev 520683, python-pastedeploy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:56:59 UTC (rev 520684)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pastedeploy
+pkgname=('python-pastedeploy' 'python2-pastedeploy')
+pkgver=2.0.1
+pkgrel=2
+pkgdesc="Load, configure, and compose WSGI applications and servers"
+arch=('any')
+license=('MIT')
+url="http://pythonpaste.org/deploy/"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/Pylons/pastedeploy/archive/$pkgver.tar.gz")
+sha512sums=('be50c434765d5a913f9456527a72bd88e778e947b1db99ee4ea2f3325366038d941bdab6c826bd61f0c1eb1618395e6bca2081ac99b5ca50aa7120406d5f4ce3')
+
+prepare() {
+  cp -a pastedeploy-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pastedeploy-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/pastedeploy-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/pastedeploy-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/pastedeploy-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-pastedeploy() {
+  depends=('python-setuptools')
+
+  cd pastedeploy-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
+
+package_python2-pastedeploy() {
+  depends=('python2-setuptools')
+
+  cd pastedeploy-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}



More information about the arch-commits mailing list