Date: Saturday, September 19, 2015 @ 15:40:36
  Author: fyan
Revision: 140833

archrelease: copy trunk to community-staging-any

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

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

Copied: python-flask/repos/community-staging-any/PKGBUILD (from rev 140832, 
python-flask/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2015-09-19 13:40:36 UTC (rev 140833)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com>
+# Contributor: Alexander Rødseth <rods...@gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Tarmo Heiskanen <turs...@gmail.com>
+
+pkgname=('python-flask' 'python2-flask')
+pkgver=0.10.1
+pkgrel=6
+pkgdesc='Micro webdevelopment framework for Python'
+url='http://flask.pocoo.org/'
+arch=('any')
+license=('custom:BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("http://pypi.python.org/packages/source/F/Flask/Flask-$pkgver.tar.gz";)
+sha256sums=('4c83829ff83d408b5e1d4995472265411d2c414112298f2eb4b359d9e4563373')
+
+prepare() {
+  cp -r "Flask-$pkgver" "python-flask-$pkgver"
+  cp -r "Flask-$pkgver" "python2-flask-$pkgver"
+}
+
+build_python-flask() {
+  cd "$pkgname-$pkgver"
+
+  python setup.py build
+}
+
+build_python2-flask() {
+  cd "$pkgname-$pkgver"
+
+  python setup.py build
+}
+
+check_python-flask() {
+  cd "$pkgname-$pkgver"
+  python setup.py test
+
+  cd "$pkgname-$pkgver"
+  python2 setup.py test
+}
+
+package_python-flask() {
+  depends=('python-werkzeug' 'python-jinja' 'python-itsdangerous')
+  cd "$pkgname-$pkgver"
+
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-flask() {
+  depends=('python2-werkzeug' 'python2-jinja' 'python2-itsdangerous')
+  cd "$pkgname-$pkgver"
+
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to