2021-02-25 19:52:05 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
2021-03-21 00:14:15 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
2021-02-25 19:52:05 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
2021-03-24 22:09:23 +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
|
2021-02-25 19:52:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
2021-03-21 16:10:53 +00:00
|
|
|
./configure --prefix="${PREFIX}" \
|
2021-02-25 19:52:05 +00:00
|
|
|
--without-bash-malloc \
|
2021-03-20 11:48:41 +00:00
|
|
|
--disable-nls \
|
|
|
|
--build=i386-unknown-linux-gnu \
|
|
|
|
--enable-static-link
|
2021-02-25 19:52:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2021-04-02 12:24:40 +01:00
|
|
|
# Do not install prebuilt .mo translation catalogs
|
|
|
|
install bash "${DESTDIR}${PREFIX}/bin"
|
2021-02-25 19:52:05 +00:00
|
|
|
}
|