[arch-commits] Commit in python-flask-autoindex/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Jul 8 10:34:47 UTC 2018
Date: Sunday, July 8, 2018 @ 10:34:47
Author: felixonmars
Revision: 354722
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 354721, python-flask-autoindex/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-flask-autoindex/repos/community-staging-any/PKGBUILD (from rev 354721, python-flask-autoindex/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-08 10:34:47 UTC (rev 354722)
@@ -0,0 +1,37 @@
+# $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.1
+pkgrel=2
+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")
+sha256sums=('a789e4033b984b8240690b80e055d7dd4f04785c5fe9431c31b2c27180d2076d')
+
+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 "$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