33 lines
821 B
Bash
Executable File
33 lines
821 B
Bash
Executable File
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
# SPDX-FileCopyrightText: 2021 Bastian Bittorf <bb@npl.de>
|
|
#
|
|
# 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
|
|
autoconf-2.61
|
|
|
|
# avoid non-deterministic build:
|
|
printf '%s\n%s\n' \
|
|
'#!/bin/sh' \
|
|
'echo "#define PIPESIZE 65536"' >builtins/psize.sh
|
|
}
|
|
|
|
src_configure() {
|
|
./configure --prefix="${PREFIX}" \
|
|
--without-bash-malloc \
|
|
--disable-nls \
|
|
--build=i386-unknown-linux-gnu \
|
|
--enable-static-link
|
|
}
|
|
|
|
src_install() {
|
|
# Do not install prebuilt .mo translation catalogs
|
|
install bash "${DESTDIR}${PREFIX}/bin"
|
|
}
|