void-packages/srcpkgs/python-crypto/template

38 lines
1 KiB
Text
Raw Normal View History

2014-06-18 14:09:08 +00:00
# Template file for 'python-crypto'
pkgname=python-crypto
2013-12-28 16:05:41 +00:00
version=2.6.1
2014-07-12 21:47:34 +00:00
revision=4
2014-06-18 14:09:08 +00:00
wrksrc="pycrypto-${version}"
replaces="pycrypto>=0"
2010-11-27 21:31:08 +00:00
build_style=python-module
2014-07-12 21:47:34 +00:00
python_versions="2.7 3.4"
hostmakedepends="python-devel python3.4-devel"
makedepends="${hostmakedepends} gmp-devel"
depends="python"
pycompile_module="Crypto"
2014-07-12 21:47:34 +00:00
short_desc="The Python Cryptography Toolkit (Python2)"
2010-11-27 21:31:08 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://www.dlitz.net/software/pycrypto/"
license="PSF, Public domain"
2014-11-03 14:16:52 +00:00
update_pkgname=pycrypto
update_ignore="*a* *b*"
2014-06-18 14:09:08 +00:00
distfiles="http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-$version.tar.gz"
2013-12-28 16:05:41 +00:00
checksum=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
2010-11-27 21:31:08 +00:00
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -e "s|'/usr/include/'|''|g" -i setup.py
fi
2013-12-28 16:05:41 +00:00
CC= CFLAGS= ./configure ${configure_args}
}
2014-07-12 21:47:34 +00:00
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
}
}