Date: Saturday, September 4, 2021 @ 02:51:29 Author: alex19ep Revision: 1010766
add python-spake2 Added: python-spake2/ python-spake2/repos/ python-spake2/trunk/ python-spake2/trunk/PKGBUILD ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Added: python-spake2/trunk/PKGBUILD =================================================================== --- python-spake2/trunk/PKGBUILD (rev 0) +++ python-spake2/trunk/PKGBUILD 2021-09-04 02:51:29 UTC (rev 1010766) @@ -0,0 +1,31 @@ +# Maintainer: Alexander Epaneshnikov <[email protected]> +# Contributor: Storm Dragon <[email protected]> + +pkgname=python-spake2 +pkgver=0.8 +pkgrel=8 +pkgdesc="Pure-python implementation of the SPAKE2 Password-Authenticated Key" +arch=('any') +url="https://github.com/warner/python-spake2" +license=('MIT') +depends=('python' 'python-hkdf') +makedepends=('python-setuptools') +checkdepends=('python-pytest') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/warner/python-spake2/archive/refs/tags/v${pkgver}.tar.gz") +sha512sums=('908c377c831f4a11551973ca917b113d51a66c533d35fd19b2692fdb7e575ed2a5045d9b632bc55c37b68ad092f01dff5da191e9dfbfb5599b72844788438d68') + +build() { + cd "${pkgname}-${pkgver}" + python setup.py build +} + +check() { + cd "${pkgname}-${pkgver}" + pytest +} + +package() { + cd "${pkgname}-${pkgver}" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -vDm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}
