python-ecdsa: update to 0.13
This commit is contained in:
parent
90de7be8bd
commit
855dd4a127
|
@ -1,38 +1,39 @@
|
||||||
# Template file for 'python-ecdsa'
|
# Template file for 'python-ecdsa'
|
||||||
pkgname=python-ecdsa
|
pkgname=python-ecdsa
|
||||||
version=0.11
|
version=0.13
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="${pkgname/python-/}-${version}"
|
wrksrc="${pkgname/python-/}-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
makedepends="python-devel python3.4-devel"
|
depends="python-six"
|
||||||
depends="python"
|
|
||||||
pycompile_module="ecdsa"
|
pycompile_module="ecdsa"
|
||||||
short_desc="Implementation of ECDSA in Python2"
|
short_desc="Implementation of ECDSA in Python2"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="https://github.com/warner/python-ecdsa/"
|
homepage="https://github.com/warner/python-ecdsa/"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="https://pypi.python.org/packages/source/e/ecdsa/ecdsa-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/e/ecdsa/ecdsa-${version}.tar.gz"
|
||||||
checksum=8e3b6c193f91dc94b2f3b0261e3eabbdc604f78ff99fdad324a56fdd0b5e958c
|
checksum=64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa
|
||||||
|
|
||||||
pre_install() {
|
pre_build() {
|
||||||
sed -i 's,#! /usr/bin/env python,&3.4,' build-3.4/lib/ecdsa/*.py
|
# 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() {
|
post_install() {
|
||||||
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-ecdsa_package() {
|
python3.4-ecdsa_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4"
|
depends="python3.4-six"
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="ecdsa"
|
pycompile_module="ecdsa"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
vinstall ${wrksrc}/LICENSE 644 usr/share/licenses/${pkgname}
|
vlicense ${wrksrc}/LICENSE
|
||||||
|
find ${PKGDESTDIR} -type f -name '*.py' -exec sed -i 's,#! /usr/bin/env python,&3.4,' {} +
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue