[arch-commits] Commit in python-flask-autoindex/repos/community-any (2 files)
Antonio Rojas
arojas at archlinux.org
Fri Apr 27 21:22:51 UTC 2018
Date: Friday, April 27, 2018 @ 21:22:50
Author: arojas
Revision: 318328
archrelease: copy trunk to community-any
Added:
python-flask-autoindex/repos/community-any/PKGBUILD
(from rev 318327, python-flask-autoindex/trunk/PKGBUILD)
Deleted:
python-flask-autoindex/repos/community-any/PKGBUILD
----------+
PKGBUILD | 87 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 46 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-04-27 21:22:19 UTC (rev 318327)
+++ PKGBUILD 2018-04-27 21:22:50 UTC (rev 318328)
@@ -1,41 +0,0 @@
-# $Id$
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Maintainer: Moritz Lipp <mlq at pwmt.org>
-
-_pipname=Flask-AutoIndex
-pkgbase=python-flask-autoindex
-pkgname=(python2-flask-autoindex python-flask-autoindex)
-pkgver=0.6
-pkgrel=3
-pkgdesc="Flask-AutoIndex generates an index page for your Flask application automatically"
-arch=(any)
-url="http://packages.python.org/Flask-AutoIndex/"
-license=(BSD)
-makedepends=(python2-setuptools python-setuptools)
-source=("https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz")
-md5sums=('7e3aa3e9ffdd4be1bc3ec95d0400e46e')
-
-prepare() {
- cp -R $_pipname-$pkgver python2-$_pipname-$pkgver
-}
-
-package_python2-flask-autoindex() {
- depends=(python2-flask-silk python2-future)
- cd python2-$_pipname-$pkgver
- python2 setup.py install --root="$pkgdir/" --optimize=1
-
- mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
- install -m644 LICENSE "$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)
- cd $_pipname-$pkgver
- python setup.py install --root="$pkgdir/" --optimize=1
-
- mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
- install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname
-}
Copied: python-flask-autoindex/repos/community-any/PKGBUILD (from rev 318327, python-flask-autoindex/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-04-27 21:22:50 UTC (rev 318328)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Moritz Lipp <mlq at pwmt.org>
+
+_pipname=Flask-AutoIndex
+pkgbase=python-flask-autoindex
+pkgname=(python2-flask-autoindex python-flask-autoindex)
+pkgver=0.6
+pkgrel=4
+pkgdesc="Flask-AutoIndex generates an index page for your Flask application automatically"
+arch=(any)
+url="http://packages.python.org/Flask-AutoIndex/"
+license=(BSD)
+makedepends=(python2-setuptools python-setuptools)
+source=("https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz"
+ autoindex-flask-1.0.patch::"https://github.com/sublee/flask-autoindex/commit/bb842705.patch")
+sha256sums=('1a3b1fd9258769ddcbdd3e7abf161811576457b6dcc4e994970e671b560561a5'
+ '4c110833e611b794b8b32bac4df9e11efa10ff8634965f9c9d56abaf71754a2e')
+
+prepare() {
+ cd $_pipname-$pkgver
+ patch -p1 -i ../autoindex-flask-1.0.patch # Fix imports removed in flask 1.0
+ cd ..
+ cp -R $_pipname-$pkgver python2-$_pipname-$pkgver
+}
+
+package_python2-flask-autoindex() {
+ depends=(python2-flask-silk python2-future)
+ cd python2-$_pipname-$pkgver
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+
+ mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
+ install -m644 LICENSE "$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)
+ cd $_pipname-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1
+
+ mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
+ install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list