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

Levente Polyak anthraxx at archlinux.org
Thu Sep 14 10:54:18 UTC 2017


    Date: Thursday, September 14, 2017 @ 10:54:17
  Author: anthraxx
Revision: 257519

archrelease: copy trunk to community-any

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

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

Copied: python-flask-script/repos/community-any/PKGBUILD (from rev 257518, python-flask-script/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-09-14 10:54:17 UTC (rev 257519)
@@ -0,0 +1,59 @@
+# 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=1
+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)
+sha256sums=('1c18e25966e966e6ffa9e8798840b1e663f471cba09be8e463e1b0addf4e76ef')
+sha512sums=('0b1237436e6c1c1f01c63596e99ecf3a25c48b38b6f26b9a35dd4b3637d8133ee06126497a9b08100eab7351e4a7992ab926e89efc9f3a89b5ef6463251cf48f')
+
+prepare() {
+  cp -ra ${_pkgname}-${pkgver}{,-py2}
+}
+
+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