1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
7 pkgdesc="Pure-Python RSA implementation"
9 url="https://github.com/sybrenstuvel/python-rsa/"
11 source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
12 depends=(python-pyasn1)
13 makedepends=(python-setuptools)
14 sha256sums=('e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21')
17 cd "$srcdir/$_libname-$pkgver"
19 rm -rf ../buildpy3; mkdir ../buildpy3
20 python setup.py build -b ../buildpy3
24 cd "$srcdir/$_libname-$pkgver"
25 #cd "$srcdir/sybren-python-rsa-8f50f506b4a2"
26 rm -rf build; ln -s ../buildpy3 build
27 python setup.py install --skip-build -O1 --root="$pkgdir"
28 install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"