APP=bc
VERSION=1.2.5
BUILD=1sml
HOMEPAGE="https://www.gnu.org/software/bc/"
DOWNLOAD=''
DESC="Arbitrary precision numeric processing language"
REQUIRES="musl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z**
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure.sh -EHNG

  make all
  make install DESTDIR=$PKG BINDIR="/bin" MAN1DIR="/share/man/man1"

  cp LICENSE.md $PKGDOCS

  mkfinalpkg
}

SHA512SUMS="
3e3f56daf1ec3622ef59de067a6497637d09adcec862eb1f90ea1fb901b113e072c1c2b7473fbb6cbff8e340db22bfe041d43b9e83e6b1bb55bf1f5a2bc40d52  bc-1.2.5.tar.lz
"
