python-pyelftools: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
9e336306ba
commit
1d1d66e3c7
2 changed files with 17 additions and 11 deletions
|
@ -1,13 +1,12 @@
|
|||
# Template file for 'python-pyelftools'
|
||||
pkgname=python-pyelftools
|
||||
version=0.24
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
wrksrc="pyelftools-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
pycompile_module="elftools"
|
||||
hostmakedepends="python-devel python3.4-devel"
|
||||
hostmakedepends="python-devel python3-devel"
|
||||
depends="python"
|
||||
short_desc="Python2 library for parsing ELF and DWARF"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
|
@ -15,22 +14,28 @@ homepage="https://github.com/eliben/pyelftools"
|
|||
license="Public Domain"
|
||||
distfiles="${PYPI_SITE}/p/pyelftools/pyelftools-${version}.tar.gz"
|
||||
checksum=e9dd97d685a5b96b88a988dabadb88e5a539b64cd7d7927fac9a7368dc4c459c
|
||||
alternatives="pyelftools:readelf:/usr/bin/readelf.py2.7"
|
||||
alternatives="pyelftools:readelf:/usr/bin/readelf.py2"
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
python3.4-pyelftools_package() {
|
||||
python3-pyelftools_package() {
|
||||
noarch=yes
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="elftools"
|
||||
depends="python3.4"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
alternatives="pyelftools:readelf:/usr/bin/readelf.py3.4"
|
||||
replaces="python3.4-pyelftools>=0"
|
||||
depends="python3"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
alternatives="pyelftools:readelf:/usr/bin/readelf.py3"
|
||||
pkg_install() {
|
||||
vmove usr/bin/*3.4
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/bin/*3
|
||||
vmove usr/lib/python3*
|
||||
vlicense LICENSE
|
||||
}
|
||||
}
|
||||
python3.4-pyelftools_package() {
|
||||
noarch=yes
|
||||
build_style=meta
|
||||
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||
depends="python3-pyelftools>=${version}_${revision}"
|
||||
}
|
||||
|
|
1
srcpkgs/python3-pyelftools
Symbolic link
1
srcpkgs/python3-pyelftools
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-pyelftools
|
Loading…
Reference in a new issue