[arch-commits] Commit in python-flask-gravatar/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 04:03:49 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:03:49
Author: felixonmars
Revision: 748426
archrelease: copy trunk to community-staging-any
Added:
python-flask-gravatar/repos/community-staging-any/
python-flask-gravatar/repos/community-staging-any/PKGBUILD
(from rev 748425, python-flask-gravatar/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-flask-gravatar/repos/community-staging-any/PKGBUILD (from rev 748425, python-flask-gravatar/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:03:49 UTC (rev 748426)
@@ -0,0 +1,37 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=Flask-Gravatar
+pkgname=python-flask-gravatar
+pkgver=0.5.0
+pkgrel=4
+pkgdesc='Small and simple gravatar usage in Flask'
+url='https://github.com/zzzsochi/Flask-Gravatar/'
+arch=('any')
+license=('BSD')
+makedepends=('python-flask' 'python-sphinx' 'python-setuptools')
+checkdepends=('python-pytest')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/zzzsochi/Flask-Gravatar/archive/v${pkgver}.tar.gz)
+sha256sums=('9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55')
+sha512sums=('8acc5374e559687cc1b5fbaa90c1d17e96fd91e8b01d3df8083bc10c92afefb3725c03c4640e92e73d727320fc26235f80f6dfe36a06aeff49268af44110a23c')
+
+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() {
+ depends=('python' 'python-flask')
+ cd ${_pkgname}-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm 644 README.rst CHANGES.rst -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/flaskgravatar.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
More information about the arch-commits
mailing list