void-packages/srcpkgs/python-ecdsa/template

44 lines
1.1 KiB
Bash

# Template file for 'python-ecdsa'
pkgname=python-ecdsa
version=0.13
revision=2
noarch=yes
wrksrc="${pkgname/python-/}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
pycompile_module="ecdsa"
short_desc="Implementation of ECDSA in Python2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/warner/python-ecdsa/"
license="MIT"
distfiles="${PYPI_SITE}/e/ecdsa/ecdsa-${version}.tar.gz"
checksum=64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa
pre_build() {
# use system six
find . -type f -name '*.py' -exec sed -i 's/from \(ecdsa\|\)\.six/from six/g' {} +
rm -f ecdsa/six.py
}
post_install() {
vlicense LICENSE
}
python3-ecdsa_package() {
noarch=yes
depends="python3-six"
pycompile_module="ecdsa"
replaces="python3.4-ecdsa>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-ecdsa_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-ecdsa>=${version}_${revision}"
}