mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
f81e47eea8
Some ports may have more than one `config.sub` that is in use (vendored dependencies, etc.). Instead of fiddling about with space-delimited strings, let's just make that setting into an array right away.
22 lines
798 B
Bash
Executable file
22 lines
798 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=bash
|
|
version=5.1.16
|
|
useconfigure=true
|
|
use_fresh_config_sub=true
|
|
use_fresh_config_guess=true
|
|
config_sub_paths=("support/config.sub")
|
|
config_guess_paths=("support/config.guess")
|
|
configopts=("--disable-nls" "--without-bash-malloc")
|
|
files="https://ftpmirror.gnu.org/gnu/bash/bash-${version}.tar.gz bash-${version}.tar.gz 5bac17218d3911834520dad13cd1f85ab944e1c09ae1aba55906be1f8192f558"
|
|
auth_type="sha256"
|
|
|
|
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
|
|
run make "${makeopts[@]}"
|
|
}
|
|
|
|
post_install() {
|
|
mkdir -p "${SERENITY_INSTALL_ROOT}/bin"
|
|
ln -sf /usr/local/bin/bash "${SERENITY_INSTALL_ROOT}/bin/bash"
|
|
}
|