void-packages/srcpkgs/pycrypto/template

32 lines
924 B
Plaintext
Raw Normal View History

2010-11-27 22:31:08 +01:00
# Template file for 'pycrypto'
pkgname=pycrypto
2013-12-28 17:05:41 +01:00
version=2.6.1
revision=1
2010-11-27 22:31:08 +01:00
build_style=python-module
2013-12-28 17:05:41 +01:00
hostmakedepends="python"
makedepends="gmp-devel python-devel"
2010-11-27 22:31:08 +01:00
short_desc="The Python Cryptography Toolkit"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://www.dlitz.net/software/pycrypto/"
license="PSF, Public domain"
distfiles="http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/$pkgname-$version.tar.gz"
2013-12-28 17:05:41 +01:00
checksum=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
2010-11-27 22:31:08 +01:00
long_desc="
The Python cryptography toolkit is intended to provide a reliable and stable
base for writing Python programs that require cryptographic functions."
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -e "s|'/usr/include/'|''|g" -i setup.py
2013-12-28 17:05:41 +01:00
configure_args+=" ac_cv_func_malloc_0_nonnull=yes"
fi
2013-12-28 17:05:41 +01:00
CC= CFLAGS= ./configure ${configure_args}
}
pycrypto_package() {
pycompile_module="Crypto"
pkg_install() {
2013-12-28 17:05:41 +01:00
vmove all
}
}