blob: b42129d626975ddb427c2f81ed8220da65b85bc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=py-rsa
_pkgname=rsa
pkgver=3.1.4
pkgrel=0
pkgdesc="Pure-Python RSA implementation"
url="http://stuvel.eu/rsa"
arch="noarch"
license="BSD"
depends="python py-asn1"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="b6b1c80e1931d4eba8538fd5d4de1355 rsa-3.1.4.tar.gz"
sha256sums="e2b0b05936c276b1edd2e1525553233b666df9e29b5c3ba223eed738277c82a0 rsa-3.1.4.tar.gz"
sha512sums="b6ff7b91909b58359bda5da99ca4297337da5985c5430d2e96663c8bcf599b2180d54afa3316d4c3b11a8f79ddcb1f41d6942a0c8db2f0d27221c3aee132f3c1 rsa-3.1.4.tar.gz"
|