python-M2Crypto: add python3 flavor
This commit is contained in:
parent
f4f4648cd5
commit
bfa0c48625
2 changed files with 15 additions and 5 deletions
|
@ -1,14 +1,14 @@
|
||||||
# Template file for 'python-M2Crypto'
|
# Template file for 'python-M2Crypto'
|
||||||
pkgname=python-M2Crypto
|
pkgname=python-M2Crypto
|
||||||
version=0.29.0
|
version=0.29.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="M2Crypto-${version}"
|
wrksrc="M2Crypto-${version}"
|
||||||
build_style=python2-module
|
build_style=python-module
|
||||||
pycompile_module="M2Crypto"
|
pycompile_module="M2Crypto"
|
||||||
hostmakedepends="python-setuptools swig libressl-devel"
|
hostmakedepends="python-setuptools python3-setuptools swig libressl-devel"
|
||||||
makedepends="libressl-devel python-devel"
|
makedepends="libressl-devel python-devel python3-devel"
|
||||||
depends="python-typing"
|
depends="python-typing"
|
||||||
short_desc="Python crypto and SSL toolkit"
|
short_desc="Python2 crypto and SSL toolkit"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://gitlab.com/m2crypto/m2crypto/"
|
homepage="https://gitlab.com/m2crypto/m2crypto/"
|
||||||
|
@ -23,3 +23,12 @@ pre_configure() {
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENCE
|
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
1
srcpkgs/python3-M2Crypto
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-M2Crypto
|
Loading…
Add table
Add a link
Reference in a new issue