Date: Friday, September 13, 2019 @ 17:16:06 Author: anthraxx Revision: 510369
upgpkg: python-flask-talisman 0.7.0-1 Modified: python-flask-talisman/trunk/PKGBUILD ----------+ PKGBUILD | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-09-13 17:09:40 UTC (rev 510368) +++ PKGBUILD 2019-09-13 17:16:06 UTC (rev 510369) @@ -1,8 +1,9 @@ # Maintainer: Jelle van der Waa <je...@archlinux.org> +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -_pyname=flask-talisman pkgname=python-flask-talisman -pkgver=0.6.0 +_pyname=${pkgname/python-/} +pkgver=0.7.0 pkgrel=1 pkgdesc='HTTP security headers for Flask' url='https://github.com/GoogleCloudPlatform/flask-talisman' @@ -9,23 +10,26 @@ arch=('any') license=('APACHE') depends=('python-flask' 'python-six') -makedepends=('python-setuptools' 'python-flask' 'python-six') +makedepends=('python-setuptools') checkdepends=('python-pytest') -source=("${pkgname}-${pkgver}.tar.gz"::https://github.com/GoogleCloudPlatform/flask-talisman/archive/v${pkgver}.tar.gz) -sha256sums=('bfa74e9a6172ca877e087ba6c832182d93e7da96010f4951a1f95dfddd064505') +source=(https://github.com/GoogleCloudPlatform/flask-talisman/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('b34cd6c61bd8417ef6ac9628d0768e43505dbb5e07b11efd913a17d5ac5394ad') -package() { +build() { cd ${_pyname}-${pkgver} - - python setup.py install --root="${pkgdir}" -O1 - install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" + 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: