37 lines
1,023 B
Bash
37 lines
1,023 B
Bash
# Template file for 'python-pycryptodome'
|
|
pkgname=python-pycryptodome
|
|
version=3.6.2
|
|
revision=1
|
|
wrksrc="pycryptodome-${version}"
|
|
build_style=python-module
|
|
pycompile_module="Crypto"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
short_desc="Python2 package of low-level cryptographic primitives"
|
|
maintainer="Wietse Kuipers <wietse@kuiprs.nl>"
|
|
homepage="https://www.pycryptodome.org/"
|
|
license="Public Domain, BSD-2-Clause"
|
|
distfiles="${PYPI_SITE}/p/pycryptodome/pycryptodome-${version}.tar.gz"
|
|
checksum=b19ed0f7752a0b1ec65834c9acb02ba64a812990854e318d32a619c709b14a69
|
|
|
|
provides="python-crypto-${version}_1"
|
|
replaces="python-crypto>=0"
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.rst LICENSE
|
|
}
|
|
|
|
python3-pycryptodome_package() {
|
|
provides="python3-crypto-${version}_1"
|
|
replaces="python3-crypto>=0"
|
|
pycompile_module="Crypto"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.rst LICENSE
|
|
}
|
|
}
|