2016-01-10 23:26:30 +01:00
|
|
|
# Template file for 'python-rsa'
|
|
|
|
pkgname=python-rsa
|
2016-03-29 18:00:37 +02:00
|
|
|
version=3.4.2
|
2016-05-01 02:13:52 +02:00
|
|
|
revision=2
|
2016-01-10 23:26:30 +01:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
pycompile_module="rsa"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2016-05-01 02:13:52 +02:00
|
|
|
depends="python-setuptools python-pyasn1"
|
2016-01-10 23:26:30 +01:00
|
|
|
short_desc="Pure-Python RSA implementation (Python2)"
|
|
|
|
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
|
|
|
|
license="Apache-2.0"
|
|
|
|
homepage="https://stuvel.eu/rsa"
|
|
|
|
distfiles="${PYPI_SITE}/r/rsa/rsa-${version}.tar.gz"
|
2016-03-29 18:00:37 +02:00
|
|
|
checksum=25df4e10c263fb88b5ace923dd84bf9aa7f5019687b5e55382ffcdb8bede9db5
|
2016-01-10 23:26:30 +01:00
|
|
|
|
2016-05-01 02:13:52 +02:00
|
|
|
alternatives="
|
|
|
|
rsa:pyrsa-decrypt-bigfile:/usr/bin/pyrsa-decrypt-bigfile2.7
|
|
|
|
rsa:pyrsa-decrypt:/usr/bin/pyrsa-decrypt2.7
|
|
|
|
rsa:pyrsa-encrypt-bigfile:/usr/bin/pyrsa-encrypt-bigfile2.7
|
|
|
|
rsa:pyrsa-encrypt:/usr/bin/pyrsa-encrypt2.7
|
|
|
|
rsa:pyrsa-keygen:/usr/bin/pyrsa-keygen2.7
|
|
|
|
rsa:pyrsa-priv2pub:/usr/bin/pyrsa-priv2pub2.7
|
|
|
|
rsa:pyrsa-sign:/usr/bin/pyrsa-sign2.7
|
|
|
|
rsa:pyrsa-verify:/usr/bin/pyrsa-verify2.7"
|
2016-01-10 23:26:30 +01:00
|
|
|
|
|
|
|
python3.4-rsa_package() {
|
2016-05-01 02:13:52 +02:00
|
|
|
alternatives="
|
|
|
|
rsa:pyrsa-decrypt-bigfile:/usr/bin/pyrsa-decrypt-bigfile3.4
|
|
|
|
rsa:pyrsa-decrypt:/usr/bin/pyrsa-decrypt3.4
|
|
|
|
rsa:pyrsa-encrypt-bigfile:/usr/bin/pyrsa-encrypt-bigfile3.4
|
|
|
|
rsa:pyrsa-encrypt:/usr/bin/pyrsa-encrypt3.4
|
|
|
|
rsa:pyrsa-keygen:/usr/bin/pyrsa-keygen3.4
|
|
|
|
rsa:pyrsa-priv2pub:/usr/bin/pyrsa-priv2pub3.4
|
|
|
|
rsa:pyrsa-sign:/usr/bin/pyrsa-sign3.4
|
|
|
|
rsa:pyrsa-verify:/usr/bin/pyrsa-verify3.4"
|
2016-01-10 23:26:30 +01:00
|
|
|
noarch=yes
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="rsa"
|
2016-05-01 02:13:52 +02:00
|
|
|
depends="python3.4-setuptools python3.4-pyasn1"
|
2016-01-10 23:26:30 +01:00
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/*3.4
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|