[arch-commits] Commit in python-flask-paranoid/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 04:07:01 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:07:01
Author: foutrelis
Revision: 748492
archrelease: copy trunk to community-staging-any
Added:
python-flask-paranoid/repos/community-staging-any/
python-flask-paranoid/repos/community-staging-any/PKGBUILD
(from rev 748491, python-flask-paranoid/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-flask-paranoid/repos/community-staging-any/PKGBUILD (from rev 748491, python-flask-paranoid/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:07:01 UTC (rev 748492)
@@ -0,0 +1,39 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=flask-paranoid
+pkgname=python-flask-paranoid
+pkgver=0.2
+pkgrel=5
+pkgdesc='Simple user session protection for Flask applications'
+url='https://github.com/miguelgrinberg/flask-paranoid/'
+arch=('any')
+license=('MIT')
+depends=('python' 'python-flask')
+makedepends=('python-sphinx' 'python-setuptools')
+checkdepends=('python-pytest')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/flask-paranoid/archive/v${pkgver}.tar.gz)
+sha256sums=('cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3')
+sha512sums=('0d642999fa4d5b795c3dcecc586fc1600cdfceec4adb38bb87ca8be9825d9ddafabb07d98df573a89e61a44a0abd27cbbd21524237b0e23b337a7d5e32ddfdae')
+
+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}
+ python setup.py test
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm 644 README.md -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-paranoid.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list