[arch-commits] Commit in python-flask-oldsessions/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 17:50:59 UTC 2015
Date: Saturday, September 19, 2015 @ 19:50:59
Author: foutrelis
Revision: 141080
archrelease: copy trunk to community-staging-any
Added:
python-flask-oldsessions/repos/community-staging-any/
python-flask-oldsessions/repos/community-staging-any/PKGBUILD
(from rev 141079, python-flask-oldsessions/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: python-flask-oldsessions/repos/community-staging-any/PKGBUILD (from rev 141079, python-flask-oldsessions/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 17:50:59 UTC (rev 141080)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=('python-flask-oldsessions' 'python2-flask-oldsessions')
+pkgver=0.10
+pkgrel=2
+pkgdesc='Provides a session class that works like the one in Flask before 0.10'
+url='https://github.com/mitsuhiko/flask-oldsessions'
+arch=('any')
+license=('custom:BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/flask-oldsessions/archive/$pkgver.tar.gz")
+sha256sums=('056e16cbe89187dc5c5fff019aa20c60daec32be2334848f4b813ce51e6701fb')
+
+prepare() {
+ cp -r "flask-oldsessions-$pkgver" "python-flask-oldsessions-$pkgver"
+ cp -r "flask-oldsessions-$pkgver" "python2-flask-oldsessions-$pkgver"
+}
+
+build_python-flask-oldsessions() {
+ cd "$pkgname-$pkgver"
+
+ python setup.py build
+}
+
+build_python2-flask-oldsessions() {
+ cd "$pkgname-$pkgver"
+
+ python setup.py build
+}
+
+package_python-flask-oldsessions() {
+ depends=('python-flask')
+ 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-oldsessions() {
+ depends=('python2-flask')
+ cd "$pkgname-$pkgver"
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
More information about the arch-commits
mailing list