36 lines
1,005 B
Bash
36 lines
1,005 B
Bash
# Template file for 'python-argon2'
|
|
pkgname=python-argon2
|
|
version=18.3.0
|
|
revision=1
|
|
wrksrc="argon2_cffi-${version}"
|
|
build_style=python-module
|
|
pycompile_module="argon2"
|
|
hostmakedepends="python-setuptools python3-setuptools python-cffi python3-cffi"
|
|
makedepends="libffi-devel python-cffi python3-cffi python-devel python3-devel"
|
|
depends="python-cffi python-enum34 python-six"
|
|
short_desc="CFFI-based Argon2 Bindings for Python2"
|
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
|
license="MIT"
|
|
homepage="https://argon2-cffi.readthedocs.io/"
|
|
distfiles="${PYPI_SITE}/a/argon2_cffi/argon2_cffi-${version}.tar.gz"
|
|
checksum=003f588de43a817af6ecc1c06103fa0801de63849db3cb0f37576bb2da29043d
|
|
|
|
pre_build() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
export CROSS_BUILD=True
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-argon2_package() {
|
|
depends="python3-cffi python3-six"
|
|
pycompile_module="argon2"
|
|
short_desc="${short_desc/python2/python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|