summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-19 02:37:10 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-19 02:37:10 (GMT)
commit16dd192e24b481b5de9a0fed74e0bfe4936d6544 (patch)
tree4355a28e24ef30cf9d697b4d6abf2d48c5928bef /abs
parent356d36bb61f5726e33788b8778bf778bf7b98dcc (diff)
downloadlinhes_pkgbuild-16dd192e24b481b5de9a0fed74e0bfe4936d6544.zip
linhes_pkgbuild-16dd192e24b481b5de9a0fed74e0bfe4936d6544.tar.gz
linhes_pkgbuild-16dd192e24b481b5de9a0fed74e0bfe4936d6544.tar.bz2
python-flash: initial inclusion. dep of flexget
Diffstat (limited to 'abs')
-rw-r--r--abs/core/python_modules/python-flask/PKGBUILD60
-rw-r--r--abs/core/python_modules/python-flask/__changelog1
2 files changed, 61 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-flask/PKGBUILD b/abs/core/python_modules/python-flask/PKGBUILD
new file mode 100644
index 0000000..dc2cb23
--- /dev/null
+++ b/abs/core/python_modules/python-flask/PKGBUILD
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Tarmo Heiskanen <turskii@gmail.com>
+
+pkgname=('python2-flask')
+pkgver=0.12.2
+pkgrel=2
+pkgdesc='Micro webdevelopment framework for Python'
+url='http://flask.pocoo.org/'
+arch=('any')
+license=('custom:BSD')
+makedepends=('python2-setuptools')
+source=("https://github.com/pallets/flask/archive/${pkgver}.tar.gz")
+sha512sums=('5007129eed63902a39c6652f0868348629f3f6e09d38a764a6ed0e77f6e87f0a28068cfeee6ecb2dee92ccee771d57f42ba816f856e49f08b8c1dfe6bde9873c')
+
+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' 'python-click')
+ 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' 'python2-click')
+ cd "$pkgname-$pkgver"
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ mv "$pkgdir"/usr/bin/flask "$pkgdir"/usr/bin/flask2
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-flask/__changelog b/abs/core/python_modules/python-flask/__changelog
new file mode 100644
index 0000000..60db758
--- /dev/null
+++ b/abs/core/python_modules/python-flask/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 stuff