mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
29 lines
673 B
Bash
29 lines
673 B
Bash
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
SEED_PREFIX="/bootstrap-seeds/bash-5.3-1"
|
|
|
|
src_prepare() {
|
|
default
|
|
}
|
|
|
|
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() {
|
|
# Keep seed output for bootstrap artifact generation.
|
|
install -D -m 0755 bash "${DESTDIR}${SEED_PREFIX}/bin/bash"
|
|
# Also provide runtime shell in system prefix for script chaining.
|
|
install -D -m 0755 bash "${DESTDIR}/usr/bin/bash"
|
|
}
|