live-bootstrap/sysa/bash-5.1/bash-5.1.sh

31 lines
811 B
Bash
Raw Normal View History

# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
2021-03-21 00:14:15 +00:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
# Remove bison generated files
rm y.tab.c y.tab.h
# Rebuild configure script
rm configure
2021-03-20 11:48:41 +00:00
autoconf-2.61
2021-03-21 16:10:53 +00:00
# Without this bash build can be non-deterministic when using
# our old bash 2.05b which was built with Mes C library.
2021-03-21 16:10:53 +00:00
sed -i 's/sleep 3/sleep 3; sync/' builtins/psize.sh
}
src_configure() {
2021-03-21 16:10:53 +00:00
./configure --prefix="${PREFIX}" \
--without-bash-malloc \
2021-03-20 11:48:41 +00:00
--disable-nls \
--build=i386-unknown-linux-gnu \
--enable-static-link
}
src_install() {
# Do not install prebuilt .mo translation catalogs
install bash "${DESTDIR}${PREFIX}/bin"
}