serenity/Ports/zsh/package.sh

21 lines
498 B
Bash
Raw Normal View History

2021-06-05 11:31:13 +00:00
#!/usr/bin/env -S bash ../.port_include.sh
port=zsh
2023-04-18 10:55:23 +00:00
version=5.9
2023-07-10 11:10:29 +00:00
files=(
"https://sourceforge.net/projects/zsh/files/zsh/${version}/zsh-${version}.tar.xz#9b8d1ecedd5b5e81fbf1918e876752a7dd948e05c1a0dba10ab863842d45acd5"
2023-07-10 11:10:29 +00:00
)
2021-06-05 11:31:13 +00:00
useconfigure=true
use_fresh_config_sub=true
2021-06-05 11:31:13 +00:00
pre_configure() {
run "./Util/preconfig"
}
2023-04-18 10:55:23 +00:00
post_configure() {
run_replace_in_file "s/define HAVE_PRCTL 1/undef HAVE_PRCTL/" config.h
}
post_install() {
cp "${PORT_META_DIR}/zshrc" "${SERENITY_INSTALL_ROOT}/etc/"
}