Date: Wednesday, May 10, 2023 @ 18:56:11
Author: jelle
Revision: 1459806
archrelease: copy trunk to community-testing-any
Added:
python-flask-talisman/repos/community-testing-any/
python-flask-talisman/repos/community-testing-any/PKGBUILD
(from rev 1459805, python-flask-talisman/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-flask-talisman/repos/community-testing-any/PKGBUILD (from rev
1459805, python-flask-talisman/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2023-05-10 18:56:11 UTC (rev 1459806)
@@ -0,0 +1,35 @@
+# Maintainer: Jelle van der Waa <[email protected]>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-flask-talisman
+_pyname=${pkgname/python-/}
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='HTTP security headers for Flask'
+url='https://github.com/wntrblm/flask-talisman'
+arch=('any')
+license=('APACHE')
+depends=('python-flask' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=(https://github.com/wntrblm/flask-talisman/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('015db92a07b4b4c751fb9bf3fc4f82be7fa5b07f10e3f1d8e5d5f1fc00c968bd')
+
+build() {
+ cd ${_pyname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pyname}-${pkgver}
+ pytest flask_talisman
+}
+
+package() {
+ cd ${_pyname}-${pkgver}
+ python setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et: