[arch-commits] Commit in python-flask-autoindex/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Jan 1 23:16:32 UTC 2020
Date: Wednesday, January 1, 2020 @ 23:16:31
Author: arojas
Revision: 545982
Drop python2
Modified:
python-flask-autoindex/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++------------------
1 file changed, 5 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-01 23:16:07 UTC (rev 545981)
+++ PKGBUILD 2020-01-01 23:16:31 UTC (rev 545982)
@@ -2,8 +2,7 @@
# Maintainer: Moritz Lipp <mlq at pwmt.org>
_pipname=flask-autoindex
-pkgbase=python-flask-autoindex
-pkgname=(python2-flask-autoindex python-flask-autoindex)
+pkgname=python-flask-autoindex
pkgver=0.6.4
pkgrel=2
pkgdesc="Flask-AutoIndex generates an index page for your Flask application automatically"
@@ -10,24 +9,12 @@
arch=(any)
url="https://packages.python.org/Flask-AutoIndex/"
license=(BSD)
-makedepends=(python2-setuptools python-setuptools)
-source=($pkgbase-$pkgver.tar.gz::"https://github.com/general03/flask-autoindex/archive/v$pkgver.tar.gz")
+depends=(python-flask-silk python-future)
+makedepends=(python-setuptools)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/general03/flask-autoindex/archive/v$pkgver.tar.gz")
sha256sums=('44df9cc770d7fc30f8e90d77c468035329855b90aaff18bf4c2a7dc5fac63b77')
-package_python2-flask-autoindex() {
- depends=(python2-flask-silk python2-future)
- cd $_pipname-$pkgver
- python2 setup.py install --root="$pkgdir" --optimize=1
-
- mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
- install -m644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname
-
-# Fix conflict with python-flask-autoindex
- mv "$pkgdir"/usr/bin/fai{,2}
-}
-
-package_python-flask-autoindex() {
- depends=(python-flask-silk python-future)
+package() {
cd $_pipname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
More information about the arch-commits
mailing list