[arch-commits] Commit in python-flask-principal/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 21:39:24 UTC 2021
Date: Tuesday, November 30, 2021 @ 21:39:23
Author: felixonmars
Revision: 1058916
archrelease: copy trunk to community-staging-any
Added:
python-flask-principal/repos/community-staging-any/
python-flask-principal/repos/community-staging-any/PKGBUILD
(from rev 1058915, python-flask-principal/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-flask-principal/repos/community-staging-any/PKGBUILD (from rev 1058915, python-flask-principal/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 21:39:23 UTC (rev 1058916)
@@ -0,0 +1,44 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=flask-principal
+pkgname=python-flask-principal
+pkgver=0.4.0
+pkgrel=7
+pkgdesc='Identity management for Flask applications'
+url='https://pythonhosted.org/Flask-Principal/'
+arch=('any')
+license=('MIT')
+depends=('python' 'python-flask')
+makedepends=('python-blinker' 'python-sphinx' 'python-setuptools')
+checkdepends=('python-nose')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mattupstate/flask-principal/archive/${pkgver}.tar.gz)
+sha256sums=('ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9')
+sha512sums=('ed8cb28c4e8d936de96db0bf9f7cb45b253dc204c4b8f8dd8022ef1552592ff6324b4a33d3ee862794a6e20eb8c32a0365e7b9397d427da5022c5ded3dfa308a')
+
+prepare() {
+ cd ${_pkgname}-${pkgver}
+ 2to3 -w docs/conf.py
+}
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py build
+ sphinx-build -b text docs docs/_build/text
+ sphinx-build -b man docs docs/_build/man
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ nosetests
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+ install -Dm 644 README.rst CHANGES -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 docs/_build/man/flask-principal.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list