python-M2Crypto: add python3 flavor

This commit is contained in:
Alessio Sergi 2018-04-14 22:09:29 +02:00
parent f4f4648cd5
commit bfa0c48625
2 changed files with 15 additions and 5 deletions

View File

@ -1,14 +1,14 @@
# Template file for 'python-M2Crypto'
pkgname=python-M2Crypto
version=0.29.0
revision=1
revision=2
wrksrc="M2Crypto-${version}"
build_style=python2-module
build_style=python-module
pycompile_module="M2Crypto"
hostmakedepends="python-setuptools swig libressl-devel"
makedepends="libressl-devel python-devel"
hostmakedepends="python-setuptools python3-setuptools swig libressl-devel"
makedepends="libressl-devel python-devel python3-devel"
depends="python-typing"
short_desc="Python crypto and SSL toolkit"
short_desc="Python2 crypto and SSL toolkit"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="MIT"
homepage="https://gitlab.com/m2crypto/m2crypto/"
@ -23,3 +23,12 @@ pre_configure() {
post_install() {
vlicense LICENCE
}
python3-M2Crypto_package() {
pycompile_module="M2Crypto"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENCE
}
}

1
srcpkgs/python3-M2Crypto Symbolic link
View File

@ -0,0 +1 @@
python-M2Crypto