[arch-commits] Commit in python-flask-sqlalchemy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 18:30:12 UTC 2020
Date: Monday, November 9, 2020 @ 18:30:12
Author: felixonmars
Revision: 748021
archrelease: copy trunk to community-staging-any
Added:
python-flask-sqlalchemy/repos/community-staging-any/
python-flask-sqlalchemy/repos/community-staging-any/PKGBUILD
(from rev 748017, python-flask-sqlalchemy/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-flask-sqlalchemy/repos/community-staging-any/PKGBUILD (from rev 748017, python-flask-sqlalchemy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 18:30:12 UTC (rev 748021)
@@ -0,0 +1,43 @@
+# 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
+pkgname=python-flask-sqlalchemy
+pkgver=2.4.4
+pkgrel=2
+pkgdesc='Adds SQLAlchemy support to your Flask application'
+url='http://flask-sqlalchemy.pocoo.org/'
+arch=('any')
+license=('BSD')
+depends=('python-flask' 'python-sqlalchemy')
+makedepends=('python-setuptools' 'python-sphinx' 'python-pallets-sphinx-themes' 'python-sphinx-issues')
+checkdepends=('python-pytest' 'python-blinker' 'python-mock')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mitsuhiko/flask-sqlalchemy/archive/${pkgver}.tar.gz)
+sha512sums=('6a72aababf7f3c76dc70fd178a97ae5616bcf887309a06f5f0d3d09f0c4b82c855c2c65e51a48a89dcbd346444472d73cf159eecc0f6b2fb8665d52d186b6626')
+
+prepare() {
+ sed -r "s|(release =)|\\1 '${pkgver}' #|" -i ${_pyname}-${pkgver}/docs/conf.py
+}
+
+build() {
+ cd ${_pyname}-${pkgver}
+ python setup.py build
+ make -j1 -C docs man text SPHINXBUILD=sphinx-build PYTHONPATH=..
+}
+
+check() {
+ cd ${_pyname}-${pkgver}
+ PYTHONPATH=".:${PYTHONPATH}" py.test
+}
+
+package() {
+ cd ${_pyname}-${pkgver}
+ python setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 CHANGES.rst README.rst -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