python-crypto: add python3.4 subpkg

This commit is contained in:
Alessio Sergi 2014-07-12 23:47:34 +02:00
parent e618c6470a
commit 1ec6effb81
2 changed files with 17 additions and 4 deletions

View File

@ -1,14 +1,16 @@
# Template file for 'python-crypto' # Template file for 'python-crypto'
pkgname=python-crypto pkgname=python-crypto
version=2.6.1 version=2.6.1
revision=3 revision=4
wrksrc="pycrypto-${version}" wrksrc="pycrypto-${version}"
replaces="pycrypto>=0" replaces="pycrypto>=0"
build_style=python-module build_style=python-module
hostmakedepends="python-devel" python_versions="2.7 3.4"
makedepends="gmp-devel python-devel" hostmakedepends="python-devel python3.4-devel"
makedepends="${hostmakedepends} gmp-devel"
depends="python"
pycompile_module="Crypto" pycompile_module="Crypto"
short_desc="The Python Cryptography Toolkit" short_desc="The Python Cryptography Toolkit (Python2)"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://www.dlitz.net/software/pycrypto/" homepage="https://www.dlitz.net/software/pycrypto/"
license="PSF, Public domain" license="PSF, Public domain"
@ -21,3 +23,13 @@ pre_build() {
fi fi
CC= CFLAGS= ./configure ${configure_args} CC= CFLAGS= ./configure ${configure_args}
} }
python3.4-crypto_package() {
depends="python3.4"
pycompile_version="3.4"
pycompile_module="Crypto"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}

1
srcpkgs/python3.4-crypto Symbolic link
View File

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