diff --git a/srcpkgs/python-pyelftools/template b/srcpkgs/python-pyelftools/template deleted file mode 100644 index a9d53a9d77d..00000000000 --- a/srcpkgs/python-pyelftools/template +++ /dev/null @@ -1,32 +0,0 @@ -# Template file for 'python-pyelftools' -pkgname=python-pyelftools -version=0.25 -revision=3 -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 " -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() { - 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 - } -} diff --git a/srcpkgs/python3-pyelftools b/srcpkgs/python3-pyelftools deleted file mode 120000 index 5871f624853..00000000000 --- a/srcpkgs/python3-pyelftools +++ /dev/null @@ -1 +0,0 @@ -python-pyelftools \ No newline at end of file diff --git a/srcpkgs/python3-pyelftools/template b/srcpkgs/python3-pyelftools/template new file mode 100644 index 00000000000..dbd62331b0c --- /dev/null +++ b/srcpkgs/python3-pyelftools/template @@ -0,0 +1,20 @@ +# Template file for 'python3-pyelftools' +pkgname=python3-pyelftools +version=0.25 +revision=4 +wrksrc="pyelftools-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +short_desc="Python3 library for parsing ELF and DWARF" +maintainer="Orphaned " +license="Public Domain" +homepage="https://github.com/eliben/pyelftools" +distfiles="${PYPI_SITE}/p/pyelftools/pyelftools-${version}.tar.gz" +checksum=89c6da6f56280c37a5ff33468591ba9a124e17d71fe42de971818cbff46c1b24 +alternatives="pyelftools:readelf:/usr/bin/readelf.py3" + +post_install() { + mv $DESTDIR/usr/bin/readelf.py $DESTDIR/usr/bin/readelf.py3 + vlicense LICENSE +}