lfs-buildscripts/CH8Build/CH08.10-readline.sh

38 lines
701 B
Bash
Raw Normal View History

2024-10-04 15:20:13 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 02:37:48 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-04 15:20:13 +08:00
[ -d readline-${readline_version} ] && rm -rf readline-${readline_version}
tar -zxf ${readline_tarball}
cd readline-${readline_version}
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf
./configure --prefix=/usr \
--disable-static \
--with-curses \
--docdir=/usr/share/doc/readline-${readline_version}
make SHLIB_LIBS="-lncursesw" install
if [ $? -ne 0 ]; then
myfail "Failed building readline"
fi
2024-10-08 12:28:55 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf readline-${readline_version}
popd