void-packages/srcpkgs/python-M2Crypto/template

30 lines
821 B
Bash

# Template file for 'python-M2Crypto'
pkgname=python-M2Crypto
version=0.31.0
revision=1
wrksrc="M2Crypto-${version}"
build_style=python-module
pycompile_module="M2Crypto"
hostmakedepends="python-setuptools python3-setuptools swig libressl-devel"
makedepends="libressl-devel python-devel python3-devel"
depends="python-typing"
short_desc="Python2 crypto and SSL toolkit"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="MIT"
homepage="https://gitlab.com/m2crypto/m2crypto/"
distfiles="${PYPI_SITE}/M/M2Crypto/M2Crypto-${version}.tar.gz"
checksum=fd59a9705275d609948005f4cbcaf25f28a4271308237eb166169528692ce498
post_install() {
vlicense LICENCE
}
python3-M2Crypto_package() {
pycompile_module="M2Crypto"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENCE
}
}