python-ecdsa: update to 0.11
Add python3.4 subpkg with pycompile support.
This commit is contained in:
parent
32b9b50e2a
commit
5b01707c4d
|
@ -1,16 +1,38 @@
|
||||||
# Template file for 'python-ecdsa'
|
# Template file for 'python-ecdsa'
|
||||||
pkgname=python-ecdsa
|
pkgname=python-ecdsa
|
||||||
version=0.10
|
version=0.11
|
||||||
revision=1
|
revision=1
|
||||||
|
noarch=yes
|
||||||
wrksrc="${pkgname/python-/}-${version}"
|
wrksrc="${pkgname/python-/}-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python"
|
python_versions="2.7 3.4"
|
||||||
makedepends="python-devel python-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
noarch="yes"
|
makedepends="python-devel python3.4-devel"
|
||||||
|
depends="python"
|
||||||
pycompile_module="ecdsa"
|
pycompile_module="ecdsa"
|
||||||
short_desc="Python Implementation of ECDSA"
|
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="http://pypi.python.org/packages/source/e/ecdsa/ecdsa-$version.tar.gz"
|
distfiles="https://pypi.python.org/packages/source/e/ecdsa/ecdsa-${version}.tar.gz"
|
||||||
checksum=67dae9e1af2b0fd71bc9a378654f7dc89211c1c5aee71e160f8cfce1fa6d6980
|
checksum=8e3b6c193f91dc94b2f3b0261e3eabbdc604f78ff99fdad324a56fdd0b5e958c
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
sed -i 's,#! /usr/bin/env python,&3.4,' build-3.4/lib/ecdsa/*.py
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
||||||
|
}
|
||||||
|
|
||||||
|
python3.4-ecdsa_package() {
|
||||||
|
noarch=yes
|
||||||
|
depends="python3.4"
|
||||||
|
pycompile_version="3.4"
|
||||||
|
pycompile_module="ecdsa"
|
||||||
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python3.4
|
||||||
|
vinstall ${wrksrc}/LICENSE 644 usr/share/licenses/${pkgname}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
python-ecdsa
|
Loading…
Reference in New Issue