[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Thu Oct 13 16:18:19 UTC 2016
Date: Thursday, October 13, 2016 @ 16:18:18
Author: anthraxx
Revision: 192197
addpkg: python-flask-sqlalchemy 2.1-2
Added:
python-flask-sqlalchemy/
python-flask-sqlalchemy/repos/
python-flask-sqlalchemy/trunk/
python-flask-sqlalchemy/trunk/PKGBUILD
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
Added: python-flask-sqlalchemy/trunk/PKGBUILD
===================================================================
--- python-flask-sqlalchemy/trunk/PKGBUILD (rev 0)
+++ python-flask-sqlalchemy/trunk/PKGBUILD 2016-10-13 16:18:18 UTC (rev 192197)
@@ -0,0 +1,64 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Serge Victor <arch at random.re>
+# Contributor: Kevin Azzam <aur at azz.am>
+
+_pyname=flask-sqlalchemy
+pkgbase=python-flask-sqlalchemy
+pkgname=('python-flask-sqlalchemy' 'python2-flask-sqlalchemy')
+pkgver=2.1
+pkgrel=2
+pkgdesc='Adds SQLAlchemy support to your Flask application'
+url='http://flask-sqlalchemy.pocoo.org/'
+arch=('any')
+license=('BSD')
+makedepends=('python-setuptools' 'python-sphinx' 'python-flask' 'python-sqlalchemy'
+ 'python2-setuptools' 'python2-sphinx' 'python2-flask' 'python2-sqlalchemy')
+checkdepends=('python-pytest' 'python-blinker'
+ 'python2-pytest' 'python2-blinker')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mitsuhiko/flask-sqlalchemy/archive/${pkgver}.tar.gz)
+sha512sums=('46f4920cdfdf7cadd73be03a9d70cd4f8bfb96ed025b7141ec8b6269cc86316f1b0803a33fb41b19fda070019d34f5e94d224370a468e63dcd6960af83b20cf3')
+
+prepare() {
+ sed -r "s|(release =)|\\1 '${pkgver}' #|" -i ${_pyname}-${pkgver}/docs/conf.py
+ cp -a ${_pyname}-${pkgver}{,-py2}
+}
+
+build() {
+ (cd ${_pyname}-${pkgver}
+ make -C docs man text SPHINXBUILD=sphinx-build
+ )
+ (cd ${_pyname}-${pkgver}-py2
+ make -C docs man text SPHINXBUILD=sphinx-build2
+ )
+}
+
+check() {
+ (cd ${_pyname}-${pkgver}
+ PYTHONPATH=".:${PYTHONPATH}" py.test
+ )
+ (cd ${_pyname}-${pkgver}-py2
+ PYTHONPATH=".:${PYTHONPATH}" py.test2
+ )
+}
+
+package_python-flask-sqlalchemy() {
+ depends=('python-flask' 'python-sqlalchemy')
+ cd ${_pyname}-${pkgver}
+ python setup.py install --root="${pkgdir}" -O1
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 CHANGES README -t "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r docs/_build/text "${pkgdir}/usr/share/doc/${pkgname}/text"
+ install -Dm 644 docs/_build/man/${_pyname}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+package_python2-flask-sqlalchemy() {
+ depends=('python2-flask' 'python2-sqlalchemy')
+ cd ${_pyname}-${pkgver}
+ python2 setup.py install --root="${pkgdir}" -O1
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 CHANGES README -t "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r docs/_build/text "${pkgdir}/usr/share/doc/${pkgname}/text"
+ install -Dm 644 docs/_build/man/${_pyname}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list