diff --git a/srcpkgs/python-pyelftools/template b/srcpkgs/python-pyelftools/template index 2c6c1faa35..41917c242e 100644 --- a/srcpkgs/python-pyelftools/template +++ b/srcpkgs/python-pyelftools/template @@ -1,16 +1,36 @@ # Template file for 'python-pyelftools' pkgname=python-pyelftools -version=0.23 -revision=2 +version=0.24 +revision=1 noarch=yes wrksrc="pyelftools-${version}" build_style=python-module -hostmakedepends="python-setuptools" -depends="python" +python_versions="2.7 3.4" pycompile_module="elftools" -short_desc="Python library for parsing ELF and DWARF" +hostmakedepends="python-devel python3.4-devel" +depends="python" +short_desc="Python2 library for parsing ELF and DWARF" maintainer="Alessio Sergi " homepage="https://github.com/eliben/pyelftools" license="Public Domain" distfiles="${PYPI_SITE}/p/pyelftools/pyelftools-${version}.tar.gz" -checksum=fc57aadd096e8f9b9b03f1a9578f673ee645e1513a5ff0192ef439e77eab21de +checksum=e9dd97d685a5b96b88a988dabadb88e5a539b64cd7d7927fac9a7368dc4c459c +alternatives="pyelftools:readelf:/usr/bin/readelf.py2.7" + +post_install() { + vlicense LICENSE +} + +python3.4-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" + pkg_install() { + vmove usr/bin/*3.4 + vmove usr/lib/python3.4 + vlicense LICENSE + } +} diff --git a/srcpkgs/python3.4-pyelftools b/srcpkgs/python3.4-pyelftools new file mode 120000 index 0000000000..5871f62485 --- /dev/null +++ b/srcpkgs/python3.4-pyelftools @@ -0,0 +1 @@ +python-pyelftools \ No newline at end of file