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

Jelle van der Waa jelle at archlinux.org
Tue Jul 3 19:57:20 UTC 2018


    Date: Tuesday, July 3, 2018 @ 19:57:19
  Author: jelle
Revision: 351530

archrelease: copy trunk to community-staging-any

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

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

Copied: python-flask-script/repos/community-staging-any/PKGBUILD (from rev 351529, python-flask-script/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-03 19:57:19 UTC (rev 351530)
@@ -0,0 +1,68 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Benjamin A. Shelton <zancarius at gmail.com>
+# Contributor: mitsuse <mitsuset - gmail>
+
+_pkgname=flask-script
+pkgbase=python-flask-script
+pkgname=('python2-flask-script' 'python-flask-script')
+pkgver=2.0.6
+pkgrel=2
+pkgdesc='Flask extension to help writing external scripts for Flask applications'
+url='https://github.com/smurfix/flask-script'
+arch=('any')
+license=('BSD')
+makedepends=('python-setuptools' 'python-flask'
+             'python2-setuptools' 'python2-flask')
+checkdepends=('python-pytest' 'python2-pytest')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/smurfix/flask-script/archive/v${pkgver}.tar.gz
+        flask.ext.script_import.patch::https://github.com/smurfix/flask-script/commit/fcf894b6e4d0ad17489480b722c870aaea600db1.patch)
+sha256sums=('1c18e25966e966e6ffa9e8798840b1e663f471cba09be8e463e1b0addf4e76ef'
+            'cb1feb6965baf7c7e9250e8eecfd821bd57d0432d8c15ac83ff66e7f0a87972a')
+sha512sums=('0b1237436e6c1c1f01c63596e99ecf3a25c48b38b6f26b9a35dd4b3637d8133ee06126497a9b08100eab7351e4a7992ab926e89efc9f3a89b5ef6463251cf48f'
+            '7019325c5d04c3cad3fc220aa0cece0e76207fc47f69035ddab9bf59fed9a7d8cdf502e895d7de2bbd1d65b834666b26ca0f50003bc4ad6999453b0506a036d2')
+
+prepare() {
+  cp -ra ${_pkgname}-${pkgver}{,-py2}
+  (cd ${_pkgname}-${pkgver}
+   patch -Np1 -i ${srcdir}/flask.ext.script_import.patch
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+   patch -Np1 -i ${srcdir}/flask.ext.script_import.patch
+  )
+}
+
+build() {
+  (cd ${_pkgname}-${pkgver}
+    python setup.py build
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    python2 setup.py build
+  )
+}
+
+check() {
+  (cd ${_pkgname}-${pkgver}
+    py.test tests.py
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    py.test2 tests.py
+  )
+}
+
+package_python2-flask-script() {
+  depends=('python2-flask')
+
+  cd ${_pkgname}-${pkgver}
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 664 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+package_python-flask-script() {
+  depends=('python-flask')
+
+  cd ${_pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 664 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list