2021-01-22 19:44:05 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2023-03-27 11:45:44 +03:00
|
|
|
port='bash'
|
|
|
|
version='5.2.15'
|
|
|
|
useconfigure='true'
|
|
|
|
use_fresh_config_sub='true'
|
|
|
|
use_fresh_config_guess='true'
|
2022-05-25 13:51:13 +03:00
|
|
|
config_sub_paths=("support/config.sub")
|
|
|
|
config_guess_paths=("support/config.guess")
|
2021-09-27 01:16:18 +03:00
|
|
|
configopts=("--disable-nls" "--without-bash-malloc")
|
2023-07-10 14:10:29 +03:00
|
|
|
files=(
|
2023-09-02 07:32:27 +03:00
|
|
|
"https://ftpmirror.gnu.org/gnu/bash/bash-${version}.tar.gz#13720965b5f4fc3a0d4b61dd37e7565c741da9a5be24edc2ae00182fc1b3588c"
|
2023-07-10 14:10:29 +03:00
|
|
|
)
|
2019-09-24 09:56:39 +03:00
|
|
|
|
|
|
|
build() {
|
|
|
|
run_replace_in_file "s/define GETCWD_BROKEN 1/undef GETCWD_BROKEN/" config.h
|
|
|
|
run_replace_in_file "s/define CAN_REDEFINE_GETENV 1/undef CAN_REDEFINE_GETENV/" config.h
|
2021-09-27 01:16:18 +03:00
|
|
|
run make "${makeopts[@]}"
|
2019-09-24 09:56:39 +03:00
|
|
|
}
|
2020-03-25 17:54:30 +03:00
|
|
|
|
|
|
|
post_install() {
|
2021-04-20 18:42:04 +03:00
|
|
|
mkdir -p "${SERENITY_INSTALL_ROOT}/bin"
|
|
|
|
ln -sf /usr/local/bin/bash "${SERENITY_INSTALL_ROOT}/bin/bash"
|
2020-03-25 17:54:30 +03:00
|
|
|
}
|