blob: f53e46ea935fa40684653e40e95e651a7c40f190 (
plain)
1 # Description: Lets users edit command lines as they are typed in
2 # URL: https://tiswww.cwru.edu/php/chet/readline/rltop.html
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: ncurses
5
6 name=readline
7 version=8.1.1
8 release=1
9 source=(http://ftpmirror.gnu.org/gnu/$name/$name-${version:0:3}.tar.gz \
10 $name-$version.patch.gz inputrc)
11
12 build() {
13 cd $name-${version:0:3}
14
15 gunzip -c $SRC/$name-$version.patch.gz | patch -p0
16
17 ./configure --prefix=/usr
18 make -j1 SHLIB_LIBS=-lncurses
19 make -j1 DESTDIR=$PKG install
20
21 install -d $PKG/lib
22 mv $PKG/usr/lib/lib*.so.* $PKG/lib
23 ln -sf ../../lib/libhistory.so.${version:0:3} $PKG/usr/lib/libhistory.so
24 ln -sf ../../lib/libreadline.so.${version:0:3} $PKG/usr/lib/libreadline.so
25
26 install -D -m 644 $SRC/inputrc $PKG/etc/inputrc
27 rm -r $PKG/usr/share/{doc,info}
28 }
|