Date: Tuesday, May 12, 2020 @ 19:07:21
  Author: jelle
Revision: 627154

upgpkg: python-paste 3.4.0-2

Remove python2 unused module

Modified:
  python-paste/trunk/PKGBUILD

----------+
 PKGBUILD |   43 +++++++------------------------------------
 1 file changed, 7 insertions(+), 36 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-05-12 19:06:53 UTC (rev 627153)
+++ PKGBUILD    2020-05-12 19:07:21 UTC (rev 627154)
@@ -2,62 +2,33 @@
 # Contributor: David Campbell <davek...@archlinux.us>
 # Contributor: Cilyan Olowen <gak...@gmail.com>
 
-pkgbase=python-paste
-pkgname=(python-paste python2-paste)
+pkgname=python-paste
 pkgver=3.4.0
-pkgrel=1
+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')
+depends=('python-six')
+optdepends=('python-flup: WSGI utilities')
+makedepends=('python-setuptools' 'python-six')
+checkdepends=('python-pytest-runner' 'python-flup')
 
source=("https://files.pythonhosted.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz";)
 
sha512sums=('fbe0d1f39d8147846b3a30f18e6776c31eb5bcd8f461c0bf7afc35533c65c2ddf74263807be1b73b76c49cd6cc73c210a37ca651ef1f34e727ccf0687478085a')
 
-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')
-
+package() {
   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
-}

Reply via email to