# SPDX-License-Identifier: GPL-3.0-or-later

SEED_PREFIX="/bootstrap-seeds/bash-4.4.23-1"

src_configure() {
    ./configure \
        --prefix="${SEED_PREFIX}" \
        --without-bash-malloc \
        --disable-nls \
        --enable-static-link \
        --build="${TARGET}" \
        bash_cv_dev_stdin=absent \
        bash_cv_dev_fd=whacky
}

src_compile() {
    make -j1
}

src_install() {
    install -D -m 0755 bash "${DESTDIR}${SEED_PREFIX}/bin/bash"
    ln -sf bash "${DESTDIR}${SEED_PREFIX}/bin/sh"
}
