2021-01-22 19:44:05 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2019-09-24 09:56:39 +03:00
|
|
|
port=bash
|
2021-07-29 20:14:59 +03:00
|
|
|
version=5.1.8
|
2019-09-24 09:56:39 +03:00
|
|
|
useconfigure=true
|
2021-09-27 01:16:18 +03:00
|
|
|
configopts=("--disable-nls" "--without-bash-malloc")
|
2021-07-29 20:14:59 +03:00
|
|
|
files="https://ftpmirror.gnu.org/gnu/bash/bash-${version}.tar.gz bash-${version}.tar.gz 0cfb5c9bb1a29f800a97bd242d19511c997a1013815b805e0fdd32214113d6be"
|
|
|
|
auth_type="sha256"
|
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
|
|
|
}
|