# Maintainer: PktSurf <smlinux@pktsurf.in>
app=scons
version=3.1.2
build=1sml
homepage="http://www.scons.org/"
download="https://sourceforge.net/projects/scons/files/scons/$version/scons-$version.tar.gz"
desc="A software construction tool based on python"
requires="python3"
ignoreusr=1

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

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

build() {
  python3 setup.py build
  python3 setup.py install --root=$pkg 

  mkdir -p $pkg/share/man
  mv $pkg/usr/man/man1/* $pkg/share/man/
  rm -r $pkg/usr/man

  cp LICENSE.txt $pkgdocs/

  mkfinalpkg
}

sha512sums="
b16ac16d2185ff1866833675ef05d31d9ed691c7f169ea1f7b0c6c7ae1fc4039a139866a8da5faa5bcc39cd1103d39ea97b3fa043f91f49f953fbefc992acb79  scons-3.1.2.tar.lz
"
