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

Antonio Rojas arojas at archlinux.org
Wed May 18 22:33:10 UTC 2016


    Date: Thursday, May 19, 2016 @ 00:33:09
  Author: arojas
Revision: 175668

Update to 0.6

Modified:
  python-flask-autoindex/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-05-18 22:29:02 UTC (rev 175667)
+++ PKGBUILD	2016-05-18 22:33:09 UTC (rev 175668)
@@ -5,36 +5,37 @@
 _pipname=Flask-AutoIndex
 pkgbase=python-flask-autoindex
 pkgname=(python2-flask-autoindex python-flask-autoindex)
-pkgver=0.5
-pkgrel=3
+pkgver=0.6
+pkgrel=1
 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.python.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-0.5.tar.gz")
-md5sums=('24984602365704737468bb4d2586a739')
+source=("https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz")
+md5sums=('7e3aa3e9ffdd4be1bc3ec95d0400e46e')
 
 prepare() {
-    cp -R $_pipname-$pkgver python2-$_pipname-$pkgver
+  cp -R $_pipname-$pkgver python2-$_pipname-$pkgver
 }
 
 package_python2-flask-autoindex() {
-depends=(python2-flask-silk)
+  depends=(python2-flask-silk)
+  cd python2-$_pipname-$pkgver
+  python2 setup.py install --root="$pkgdir/" --optimize=1
 
-    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
 
-    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)
+  depends=(python-flask-silk)
+  cd $_pipname-$pkgver 
+  python setup.py install --root="$pkgdir/" --optimize=1
 
-    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
+  mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
+  install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname
 }



More information about the arch-commits mailing list