python-crypto: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-16 22:14:58 +02:00
parent ae4c95b450
commit 2c62bf53ba
2 changed files with 13 additions and 9 deletions

View file

@ -1,12 +1,10 @@
# Template file for 'python-crypto'
pkgname=python-crypto
version=2.6.1
revision=6
revision=7
wrksrc="pycrypto-${version}"
replaces="pycrypto>=0"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-devel python3.4-devel"
hostmakedepends="python-devel python3-devel"
makedepends="${hostmakedepends} gmp-devel"
depends="python"
pycompile_module="Crypto"
@ -26,12 +24,17 @@ pre_build() {
fi
}
python3.4-crypto_package() {
depends="python3.4"
pycompile_version="3.4"
python3-crypto_package() {
depends="python3"
pycompile_module="Crypto"
short_desc="${short_desc/Python2/Python3.4}"
replaces="python3.4-crypto>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3.4
vmove usr/lib/python3*
}
}
python3.4-crypto_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-crypto>=${version}_${revision}"
}

1
srcpkgs/python3-crypto Symbolic link
View file

@ -0,0 +1 @@
python-crypto