APP=bison
VERSION=3.1
BUILD=1sml
HOMEPAGE='https://www.gnu.org/software/bison/bison.html'
DOWNLOAD='https://ftp.gnu.org/gnu/bison/bison-3.1.tar.xz'
DESC="parser generator similar to yacc"
REQUIRES="m4"

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

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

  ./configure \
    --prefix="" \
    --disable-nls 

  make
  make install DESTDIR=$PKG

  mkfinalpkg
}

SHA512SUMS="
cfc0fd081892dfde34f0f1d5530db02c6160fb9c9efdc7da774c9150848456b14877fcc5f67e384cb6b1a85d174dd9cfb55ce852739fd949304f880a854765fe  bison-3.1.tar.lz
"
