217e7d31f2
After more than a year the switch to python3 packages, it is time to say them goodbye. So long, and thanks for all the fish.
46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# Template file for 'python-rsa'
|
|
pkgname=python-rsa
|
|
version=3.4.2
|
|
revision=4
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="rsa"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools 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"
|
|
checksum=25df4e10c263fb88b5ace923dd84bf9aa7f5019687b5e55382ffcdb8bede9db5
|
|
|
|
alternatives="
|
|
rsa:pyrsa-decrypt-bigfile:/usr/bin/pyrsa-decrypt-bigfile2
|
|
rsa:pyrsa-decrypt:/usr/bin/pyrsa-decrypt2
|
|
rsa:pyrsa-encrypt-bigfile:/usr/bin/pyrsa-encrypt-bigfile2
|
|
rsa:pyrsa-encrypt:/usr/bin/pyrsa-encrypt2
|
|
rsa:pyrsa-keygen:/usr/bin/pyrsa-keygen2
|
|
rsa:pyrsa-priv2pub:/usr/bin/pyrsa-priv2pub2
|
|
rsa:pyrsa-sign:/usr/bin/pyrsa-sign2
|
|
rsa:pyrsa-verify:/usr/bin/pyrsa-verify2"
|
|
|
|
python3-rsa_package() {
|
|
alternatives="
|
|
rsa:pyrsa-decrypt-bigfile:/usr/bin/pyrsa-decrypt-bigfile3
|
|
rsa:pyrsa-decrypt:/usr/bin/pyrsa-decrypt3
|
|
rsa:pyrsa-encrypt-bigfile:/usr/bin/pyrsa-encrypt-bigfile3
|
|
rsa:pyrsa-encrypt:/usr/bin/pyrsa-encrypt3
|
|
rsa:pyrsa-keygen:/usr/bin/pyrsa-keygen3
|
|
rsa:pyrsa-priv2pub:/usr/bin/pyrsa-priv2pub3
|
|
rsa:pyrsa-sign:/usr/bin/pyrsa-sign3
|
|
rsa:pyrsa-verify:/usr/bin/pyrsa-verify3"
|
|
noarch=yes
|
|
pycompile_module="rsa"
|
|
depends="python3-setuptools python3-pyasn1"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|