Skip to content

Commit

Permalink
aurget.sh - pull in python-spake2-0.8-4 from AUR at commit 4d66acc5e1…
Browse files Browse the repository at this point in the history
…a01986db829053577adc44b7a4b57b
  • Loading branch information
jantman committed Aug 19, 2019
1 parent 3dfdc4d commit b283dfe
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
22 changes: 22 additions & 0 deletions python-spake2/.SRCINFO
@@ -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

39 changes: 39 additions & 0 deletions python-spake2/PKGBUILD
@@ -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:

0 comments on commit b283dfe

Please sign in to comment.