void-packages/srcpkgs/python-M2Crypto/template
2021-10-09 08:00:53 -04:00

30 lines
820 B
Bash

# Template file for 'python-M2Crypto'
pkgname=python-M2Crypto
version=0.35.2
revision=7
wrksrc="M2Crypto-${version}"
build_style=python-module
pycompile_module="M2Crypto"
hostmakedepends="python-setuptools python3-setuptools swig openssl-devel"
makedepends="openssl-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=4c6ad45ffb88670c590233683074f2440d96aaccb05b831371869fc387cbd127
post_install() {
vlicense LICENCE
}
python3-M2Crypto_package() {
pycompile_module="M2Crypto"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENCE
}
}