34 lines
956 B
Bash
34 lines
956 B
Bash
# Template file for 'python-pycryptodome'
|
|
pkgname=python-pycryptodome
|
|
version=3.6.1
|
|
revision=1
|
|
wrksrc="pycryptodome-${version}"
|
|
build_style=python-module
|
|
pycompile_module="Crypto"
|
|
conflicts="python-crypto>=0"
|
|
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="https://github.com/Legrandin/pycryptodome/archive/v${version}.tar.gz"
|
|
checksum=0d22a802e1d505e456986cba5a9b8ab27147119905bed207c55ef58fb0bfc95a
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.rst LICENSE
|
|
}
|
|
|
|
python3-pycryptodome_package() {
|
|
pycompile_module="Crypto"
|
|
conflicts="python3-crypto>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.rst LICENSE
|
|
}
|
|
}
|