app=bison
version=3.1
build=1sml
homepage="https://www.gnu.org/software/bison/bison.html"
download="https://ftp.gnu.org/gnu/bison/bison-$version.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
"
