2013-12-28 17:10:16 +01:00
|
|
|
# Template file for 'python-ecdsa'
|
|
|
|
pkgname=python-ecdsa
|
2015-02-09 19:33:00 +01:00
|
|
|
version=0.13
|
2013-12-28 17:10:16 +01:00
|
|
|
revision=1
|
2014-06-29 20:34:29 +02:00
|
|
|
noarch=yes
|
2013-12-28 17:10:16 +01:00
|
|
|
wrksrc="${pkgname/python-/}-${version}"
|
|
|
|
build_style=python-module
|
2014-06-29 20:34:29 +02:00
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2015-02-09 19:33:00 +01:00
|
|
|
depends="python-six"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="ecdsa"
|
2014-06-29 20:34:29 +02:00
|
|
|
short_desc="Implementation of ECDSA in Python2"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-06-29 20:34:29 +02:00
|
|
|
homepage="https://github.com/warner/python-ecdsa/"
|
2013-12-28 17:10:16 +01:00
|
|
|
license="MIT"
|
2015-02-09 19:33:00 +01:00
|
|
|
distfiles="${PYPI_SITE}/e/ecdsa/ecdsa-${version}.tar.gz"
|
|
|
|
checksum=64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa
|
2014-06-29 20:34:29 +02:00
|
|
|
|
2015-02-09 19:33:00 +01:00
|
|
|
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
|
2014-06-29 20:34:29 +02:00
|
|
|
}
|
|
|
|
post_install() {
|
2015-02-09 19:33:00 +01:00
|
|
|
vlicense LICENSE
|
2014-06-29 20:34:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-ecdsa_package() {
|
|
|
|
noarch=yes
|
2015-02-09 19:33:00 +01:00
|
|
|
depends="python3.4-six"
|
2014-06-29 20:34:29 +02:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="ecdsa"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
2015-02-09 19:33:00 +01:00
|
|
|
vlicense ${wrksrc}/LICENSE
|
|
|
|
find ${PKGDESTDIR} -type f -name '*.py' -exec sed -i 's,#! /usr/bin/env python,&3.4,' {} +
|
2014-06-29 20:34:29 +02:00
|
|
|
}
|
|
|
|
}
|