void-packages/srcpkgs/pycrypto/template

35 lines
944 B
Plaintext

# Template file for 'pycrypto'
pkgname=pycrypto
version=2.6
revision=1
build_style=python-module
makedepends="gmp-devel python-devel"
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"
checksum=7293c9d7e8af2e44a82f86eb9c3b058880f4bcc884bf3ad6c8a34b64986edde8
long_desc="
The Python cryptography toolkit is intended to provide a reliable and stable
base for writing Python programs that require cryptographic functions."
if [ "$CROSS_BUILD" ]; then
hostmakedepends="python"
fi
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -e "s|'/usr/include/'|''|g" -i setup.py
configure_args+=" ac_cv_func_malloc_0_nonnull=yes "
fi
./configure ${configure_args}
}
pycrypto_package() {
pycompile_module="Crypto"
pkg_install() {
vmove usr
}
}