# Maintainer: PktSurf <smlinux@pktsurf.in>
app=python-setuptools
version=57.5.0
build=1sml
homepage="https://github.com/pypa/setuptools"
download="https://slackware.uk/slackware/slackware-15.0/source/d/python-setuptools/setuptools-$version.tar.lz"
desc="python module installation helper"
requires="python3"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf setuptools-$version

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

build() {
  # Discard Windows binaries
  rm -f setuptools/*.exe

  python setup.py install --root=$pkg

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
8a43126d246644eeffc34f5c3418ed31128b4a60d0965aadc258105e3e8545fa1716dc320393cf8a96b4a8558bb7bf8b62146dee443fa185f154dbb6c85ca6cb  setuptools-57.5.0.tar.lz
"
