void-packages/srcpkgs/python-pyelftools/template

35 lines
946 B
Bash

# Template file for 'python-pyelftools'
pkgname=python-pyelftools
version=0.25
revision=1
archs=noarch
wrksrc="pyelftools-${version}"
build_style=python-module
pycompile_module="elftools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 library for parsing ELF and DWARF"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/eliben/pyelftools"
license="Public Domain"
distfiles="${PYPI_SITE}/p/pyelftools/pyelftools-${version}.tar.gz"
checksum=89c6da6f56280c37a5ff33468591ba9a124e17d71fe42de971818cbff46c1b24
alternatives="pyelftools:readelf:/usr/bin/readelf.py2"
post_install() {
vlicense LICENSE
}
python3-pyelftools_package() {
archs=noarch
pycompile_module="elftools"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
alternatives="pyelftools:readelf:/usr/bin/readelf.py3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}