[arch-commits] Commit in python-flask-oldsessions/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Jan 1 23:23:38 UTC 2020


    Date: Wednesday, January 1, 2020 @ 23:23:38
  Author: arojas
Revision: 545986

Drop python2

Modified:
  python-flask-oldsessions/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++--------------------
 1 file changed, 5 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-01 23:20:58 UTC (rev 545985)
+++ PKGBUILD	2020-01-01 23:23:38 UTC (rev 545986)
@@ -1,6 +1,6 @@
 # Maintainer: Antonio Rojas <arojas at archlinux.org>
 
-pkgname=('python-flask-oldsessions' 'python2-flask-oldsessions')
+pkgname='python-flask-oldsessions'
 pkgver=0.10
 pkgrel=5
 pkgdesc='Provides a session class that works like the one in Flask before 0.10'
@@ -7,40 +7,25 @@
 url='https://github.com/mitsuhiko/flask-oldsessions'
 arch=('any')
 license=('custom:BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python-flask')
+makedepends=('python-setuptools')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/flask-oldsessions/archive/$pkgver.tar.gz")
 sha256sums=('056e16cbe89187dc5c5fff019aa20c60daec32be2334848f4b813ce51e6701fb')
 
 prepare() {
   cp -r "flask-oldsessions-$pkgver" "python-flask-oldsessions-$pkgver"
-  cp -r "flask-oldsessions-$pkgver" "python2-flask-oldsessions-$pkgver"
 }
 
-build_python-flask-oldsessions() {
+build() {
   cd "$pkgname-$pkgver"
 
   python setup.py build
 }
 
-build_python2-flask-oldsessions() {
+package() {
   cd "$pkgname-$pkgver"
 
-  python setup.py build
-}
-
-package_python-flask-oldsessions() {
-  depends=('python-flask')
-  cd "$pkgname-$pkgver"
-
   python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
-package_python2-flask-oldsessions() {
-  depends=('python2-flask')
-  cd "$pkgname-$pkgver"
-
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-



More information about the arch-commits mailing list