Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aurget.sh - pull in python-spake2-0.8-4 from AUR at commit 4d66acc5e1…
…a01986db829053577adc44b7a4b57b
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by mksrcinfo v8 | ||
# Sat Nov 3 18:17:46 UTC 2018 | ||
pkgbase = python-spake2 | ||
pkgdesc = This library implements the SPAKE2 password-authenticated key exchange | ||
pkgver = 0.8 | ||
pkgrel = 4 | ||
url = https://pypi.python.org/packages/10/7d/spake2-0.8 | ||
arch = any | ||
license = MIT | ||
makedepends = python-setuptools | ||
makedepends = python2-setuptools | ||
source = https://files.pythonhosted.org/packages/source/s/spake2/spake2-0.8.tar.gz | ||
md5sums = 0155bad518bb49c39994fe0b7d9fb32c | ||
|
||
pkgname = python2-spake2 | ||
depends = python2 | ||
depends = python2-hkdf | ||
|
||
pkgname = python-spake2 | ||
depends = python | ||
depends = python-hkdf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# maintainer Storm Dragon <stormdragon2976@gmail.com> | ||
|
||
pkgbase='python-spake2' | ||
_pkgname='spake2' | ||
pkgname=('python2-spake2' 'python-spake2') | ||
pkgver=0.8 | ||
pkgrel=4 | ||
pkgdesc="This library implements the SPAKE2 password-authenticated key exchange" | ||
arch=('any') | ||
url="https://pypi.python.org/packages/10/7d/${_pkgname}-${pkgver}" | ||
license=('MIT') | ||
makedepends=('python-setuptools' 'python2-setuptools') | ||
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") | ||
md5sums=('0155bad518bb49c39994fe0b7d9fb32c') | ||
|
||
prepare() { | ||
cp -a ${_pkgname}-${pkgver}{,-py2} | ||
} | ||
|
||
build() { | ||
cd "$srcdir"/${_pkgname}-${pkgver} | ||
python setup.py build | ||
cd "$srcdir"/${_pkgname}-${pkgver}-py2 | ||
python2 setup.py build | ||
} | ||
|
||
package_python-spake2() { | ||
depends=('python' 'python-hkdf') | ||
cd "$srcdir/$_pkgname-$pkgver" | ||
python setup.py install --root="$pkgdir/" --optimize=1 | ||
} | ||
|
||
package_python2-spake2() { | ||
depends=('python2' 'python2-hkdf') | ||
cd "$srcdir/${_pkgname}-$pkgver-py2" | ||
python2 setup.py install --root="$pkgdir/" --optimize=1 | ||
} | ||
|
||
# vim:set ts=2 sw=2 et: |