Date: Sunday, April 9, 2023 @ 17:54:44
  Author: felixonmars
Revision: 1443342

archrelease: copy trunk to community-staging-any

Added:
  python-flask-wtf/repos/community-staging-any/
  python-flask-wtf/repos/community-staging-any/PKGBUILD
    (from rev 1443341, python-flask-wtf/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: python-flask-wtf/repos/community-staging-any/PKGBUILD (from rev 
1443341, python-flask-wtf/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 17:54:44 UTC (rev 1443342)
@@ -0,0 +1,44 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Serge Victor <[email protected]>
+
+_pyname=flask-wtf
+pkgname=python-flask-wtf
+pkgver=1.0.1
+pkgrel=2
+pkgdesc='Simple integration of Flask and WTForms'
+url='https://flask-wtf.readthedocs.io/'
+arch=('any')
+license=('BSD')
+depends=('python-flask' 'python-wtforms' 'python-werkzeug')
+makedepends=('python-setuptools' 'python-sphinx' 'python-pallets-sphinx-themes'
+             'python-sphinxcontrib-log-cabinet' 'python-sphinx-issues')
+checkdepends=('python-flask-babel' 'python-tox')
+options=('!makeflags')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/wtforms/flask-wtf/archive/v${pkgver}.tar.gz)
+sha512sums=('75774e230b913551c9a21065951f867e0c2ea5e6dcff248a7473045fe6fd67c548de0dd5d4432c2521d22d313e8bd4a465b69bd29d295da4b1d43a8989b41bae')
+
+prepare() {
+  cd ${_pyname}-${pkgver}
+  sed -i "s/^release, version =/& '${pkgver}', '${pkgver%.*}.x' #/" 
docs/conf.py
+}
+
+build() {
+  cd ${_pyname}-${pkgver}
+  make -C docs man text SPHINXBUILD=sphinx-build
+}
+
+check() {
+  cd ${_pyname}-${pkgver}
+  tox -e py310
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install --root="${pkgdir}" -O1
+  install -Dm 644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 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/flask-wtf.1 
"${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to