python-ecdsa: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
6d75bc0adc
commit
cff801b1e4
2 changed files with 15 additions and 10 deletions
|
@ -1,12 +1,11 @@
|
|||
# Template file for 'python-ecdsa'
|
||||
pkgname=python-ecdsa
|
||||
version=0.13
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
wrksrc="${pkgname/python-/}-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python-six"
|
||||
pycompile_module="ecdsa"
|
||||
short_desc="Implementation of ECDSA in Python2"
|
||||
|
@ -25,15 +24,20 @@ post_install() {
|
|||
vlicense LICENSE
|
||||
}
|
||||
|
||||
python3.4-ecdsa_package() {
|
||||
python3-ecdsa_package() {
|
||||
noarch=yes
|
||||
depends="python3.4-six"
|
||||
pycompile_version="3.4"
|
||||
depends="python3-six"
|
||||
pycompile_module="ecdsa"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
replaces="python3.4-ecdsa>=0"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3.4
|
||||
vlicense ${wrksrc}/LICENSE
|
||||
find ${PKGDESTDIR} -type f -name '*.py' -exec sed -i 's,#! /usr/bin/env python,&3.4,' {} +
|
||||
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}"
|
||||
}
|
||||
|
|
1
srcpkgs/python3-ecdsa
Symbolic link
1
srcpkgs/python3-ecdsa
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-ecdsa
|
Loading…
Reference in a new issue