# Maintainer: PktSurf <smlinux@pktsurf.in>
app=pyelftools
version=0.29
build=1sml
homepage="https://github.com/eliben/pyelftools"
download="https://github.com/eliben/pyelftools/archive/refs/tags/v$version.tar.gz"
desc="Python library for parsing ELF files"
requires="python3"
   
prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  python setup.py install --root=$pkg
  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
327ce6facc4714dc9f2270e8057d75ef9a3a41133fb75d15cae424d7dda127973ce1c33f8a9aa754ffc2113c597a7931804ca71738d155b79fd0b376e5bde664  pyelftools-0.29.tar.lz
"
