serenity/Ports/readline/package.sh

22 lines
720 B
Bash
Raw Normal View History

2021-04-25 15:29:28 +00:00
#!/usr/bin/env -S bash ../.port_include.sh
port='readline'
version='8.2'
useconfigure='true'
use_fresh_config_sub='true'
config_sub_paths=(
'support/config.sub'
)
2023-07-10 11:10:29 +00:00
files=(
"https://ftpmirror.gnu.org/gnu/readline/readline-${version}.tar.gz#3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35"
2023-07-10 11:10:29 +00:00
)
configopts=(
'--disable-static'
'--enable-shared'
)
post_install() {
# readline specifies termcap as a dependency in its pkgconfig file, without checking if it exists.
# Remove it manually to keep other ports from discarding readline because termcap is supposedly missing.
sed_in_place '/^Requires.private:/s/termcap//' "${SERENITY_INSTALL_ROOT}/usr/local/lib/pkgconfig/readline.pc"
}