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"

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

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

  python3 setup.py build
  python3 setup.py install --prefix="" --root=$pkg 

  mkdir -p $pkg/share/man
  mv $pkg/man/man1 $pkg/share/man/
  rm -rf $pkg/man

  cp LICENSE.txt $pkgdocs/

  mkfinalpkg
}

sha512sums="
bfc0d58d33408a03eb37c1eff166af8139078026e6b43d6274afceac889d0a6743e359e89ad9a30be5ca43aeed26fba92fa4732854750b7d53091ef3e99b3d33  scons-3.1.2.tar.gz
"
