31 lines
928 B
Plaintext
31 lines
928 B
Plaintext
# Description: Lets users edit command lines as they are typed in
|
|
# URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: ncurses
|
|
|
|
name=readline
|
|
version=7.0
|
|
release=1
|
|
source=(http://ftp.gnu.org/gnu/bash/$name-$version.tar.gz \
|
|
inputrc)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure --prefix=/usr
|
|
make -j1 SHLIB_LIBS=-lncurses
|
|
make -j1 DESTDIR=$PKG install
|
|
|
|
install -d $PKG/lib
|
|
mv $PKG/usr/lib/lib*.so.* $PKG/lib
|
|
ln -sf ../../lib/libhistory.so.${version:0:3} $PKG/usr/lib/libhistory.so
|
|
ln -sf ../../lib/libreadline.so.${version:0:3} $PKG/usr/lib/libreadline.so
|
|
|
|
# Compatibility symlinks, remove later
|
|
ln -s libreadline.so.7.0 $PKG/lib/libreadline.so.6
|
|
ln -s libhistory.so.7.0 $PKG/lib/libhistory.so.6
|
|
|
|
install -D -m 644 $SRC/inputrc $PKG/etc/inputrc
|
|
rm -r $PKG/usr/share/{doc,info}
|
|
}
|