# Maintainer: PktSurf <smlinux@pktsurf.in>
app=bison
version=3.1
build=3sml
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"

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

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

build() {
  ./configure \
    --prefix=

  make
  make install DESTDIR=$pkg

  mkfinalpkg
}

sha512sums="
dadc5e1ee532cfacb149c130131b66f36a0bcf724737870a0820bbf1508e1d2035c0e06dda94518a477c330ec7f56eb2fbde38f74155c741b23556eb0c3de42c  bison-3.1.tar.lz
"
