37 lines
927 B
Bash
37 lines
927 B
Bash
# Template file for 'python-ecdsa'
|
|
pkgname=python-ecdsa
|
|
version=0.13.2
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="${pkgname/python-/}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="ecdsa"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-six"
|
|
short_desc="Implementation of ECDSA in Python2"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/warner/python-ecdsa/"
|
|
distfiles="${PYPI_SITE}/e/ecdsa/ecdsa-${version}.tar.gz"
|
|
checksum=5c034ffa23413ac923541ceb3ac14ec15a0d2530690413bff58c12b80e56d884
|
|
|
|
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() {
|
|
archs=noarch
|
|
depends="python3-six"
|
|
pycompile_module="ecdsa"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|