[arch-commits] Commit in python-flask-autoindex/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Dec 26 10:26:33 UTC 2016


    Date: Monday, December 26, 2016 @ 10:26:33
  Author: felixonmars
Revision: 202733

archrelease: copy trunk to community-staging-any

Added:
  python-flask-autoindex/repos/community-staging-any/
  python-flask-autoindex/repos/community-staging-any/PKGBUILD
    (from rev 202732, python-flask-autoindex/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: python-flask-autoindex/repos/community-staging-any/PKGBUILD (from rev 202732, python-flask-autoindex/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-26 10:26:33 UTC (rev 202733)
@@ -0,0 +1,41 @@
+# $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
+}



More information about the arch-commits mailing list