archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-rsa / trunk / PKGBUILD
blob260afd7b1869f23f554645ecccca03a0c3d6af6c
1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 pkgname=python-rsa
4 pkgver=4.9
5 pkgrel=2
6 _libname=rsa
7 pkgdesc="Pure-Python RSA implementation"
8 arch=(any)
9 url="https://github.com/sybrenstuvel/python-rsa/"
10 license=('BSD')
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')
16 build() {
17         cd "$srcdir/$_libname-$pkgver"
19         rm -rf ../buildpy3; mkdir ../buildpy3
20         python setup.py build -b ../buildpy3
23 package() {
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"