#!/bin/sh -e

./configure \
    --prefix=/usr \
    --program-prefix=b \
    --enable-btyacc

make
make DESTDIR="$1" install

ln -s "/usr/bin/byacc" "$1/usr/bin/yacc"
