APP=scons
VERSION=3.1.2
BUILD=1sml
HOMEPAGE='http://www.scons.org/'
DOWNLOAD='https://sourceforge.net/projects/scons/files/scons/2.4.1/scons-2.4.1.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
"
