28 lines
701 B
Bash
28 lines
701 B
Bash
fetch $READLINE_URL
|
|
|
|
sudo chroot "$SYSROOT" /usr/bin/env -i MAKEFLAGS="$MAKEFLAGS" PATH=/usr/bin:/usr/sbin SOURCES=/sources READLINE_VERSION=$READLINE_VERSION /usr/bin/bash <<- "EOF"
|
|
set -euo pipefail
|
|
|
|
cd "$SOURCES" && tar xf readline-$READLINE_VERSION.tar.gz && 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
|
|
|
|
sed -e '270a\
|
|
else\
|
|
chars_avail = 1;' \
|
|
-e '288i\ result = -1;' \
|
|
-i.orig input.c
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--disable-static \
|
|
--with-curses
|
|
|
|
make SHLIB_LIBS="-lncursesw" && make install
|
|
|
|
cd "$SOURCES" && rm -rf readline-$READLINE_VERSION
|
|
EOF |