void-packages/srcpkgs/python-M2Crypto/template

30 lines
822 B
Bash

# Template file for 'python-M2Crypto'
pkgname=python-M2Crypto
version=0.32.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.org>"
license="MIT"
homepage="https://gitlab.com/m2crypto/m2crypto/"
distfiles="${PYPI_SITE}/M/M2Crypto/M2Crypto-${version}.tar.gz"
checksum=29c9c6fa6abdeb4156b8e0342c30028c5ee68055b60aa21c88abfb1d85fea325
post_install() {
vlicense LICENCE
}
python3-M2Crypto_package() {
pycompile_module="M2Crypto"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENCE
}
}