2016-01-10 23:26:30 +01:00
|
|
|
# Template file for 'python-rsa'
|
|
|
|
pkgname=python-rsa
|
2016-03-26 18:20:25 +01:00
|
|
|
version=3.4.1
|
2016-01-10 23:26:30 +01:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
pycompile_module="rsa"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
depends="python-pyasn1"
|
|
|
|
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-26 18:20:25 +01:00
|
|
|
checksum=6fb74d7d7d6ecbadd37dbad329b31d848fba5fe8b40ad6d12cf7e2e5aa15e464
|
2016-01-10 23:26:30 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
for f in ${DESTDIR}/usr/bin/*; do
|
|
|
|
cp -f ${f} ${f}3.4
|
|
|
|
replace_interpreter python ${f}
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-rsa_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="python3.4-pyasn1"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="rsa"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/*3.4
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|