moved everything to different stages
This commit is contained in:
28
stage/chroot/readline.bash
Normal file
28
stage/chroot/readline.bash
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user