#!/bin/mkpkg
# description: Berkeley yacc parser generator
# url: https://invisible-island.net/byacc/

name=byacc
version=20260126
release=1
source=(
    https://invisible-island.net/archives/byacc/byacc-$version.tgz
)
sha256sums=(
    "b618c5fb44c2f5f048843db90f7d1b24f78f47b07913c8c7ba8c942d3eb24b00"
)

build() {
    cd $name-$version
    
    ./configure \
        --prefix=/usr \
        --program-transform-name='s,^,b,'
    
    make
    make DESTDIR=$PKG install
    
    ln -s byacc $PKG/usr/bin/yacc
}

# vim: filetype=sh
