blob: b35e33bab5f78ec41f4a5967da7806e748610a29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
set -e
sed -i '/MV.*old/d' Makefile.in &&
sed -i '/{OLDSUFF}/c:' support/shlib-install &&
./configure --prefix=/usr \
--disable-static \
--with-curses \
--disable-bracketed-paste-default \
--docdir=/usr/share/doc/readline-"${VERSION}"
make SHLIB_LIBS="-lncursesw" &&
make SHLIB_LIBS="-lncursesw" -j1 install &&
mv -v /usr/lib/lib{readline,history}.so.* /lib &&
ln -sfv ../../lib/"$(readlink /usr/lib/libreadline.so)" /usr/lib/libreadline.so &&
ln -sfv ../../lib/"$(readlink /usr/lib/libhistory.so )" /usr/lib/libhistory.so &&
install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-"${VERSION}"
|