diff --git a/srcpkgs/python-rsa/template b/srcpkgs/python-rsa/template new file mode 100644 index 00000000000..707b5f08fc0 --- /dev/null +++ b/srcpkgs/python-rsa/template @@ -0,0 +1,36 @@ +# Template file for 'python-rsa' +pkgname=python-rsa +version=3.3 +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 " +license="Apache-2.0" +homepage="https://stuvel.eu/rsa" +distfiles="${PYPI_SITE}/r/rsa/rsa-${version}.tar.gz" +checksum=03f3d9bebad06681771016b8752a40b12f615ff32363c7aa19b3798e73ccd615 + +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 + } +} diff --git a/srcpkgs/python3.4-rsa b/srcpkgs/python3.4-rsa new file mode 120000 index 00000000000..e6e0cb76f45 --- /dev/null +++ b/srcpkgs/python3.4-rsa @@ -0,0 +1 @@ +python-rsa \ No newline at end of file