1 # Description: Lets users edit command lines as they are typed in
2 # URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(http://ftp.gnu.org/gnu/$name/$name-${version::3}.tar.gz \
11 $name-$version.patch.gz inputrc $name-$version-wcwidth.patch)
14 cd $name-${version::3}
16 gunzip -c $SRC/$name-$version.patch.gz | patch -p0
18 # Don't use rpath for linking the shared libs
19 sed -i '117s/-Wl,-rpath,$(libdir)//' support/shobj-conf
21 # Patch to avoid wcwidth tests
22 patch -i $SRC/$name-$version-wcwidth.patch
24 ./configure --build=$CHOST \
27 make -j1 SHLIB_LIBS=-lncurses
28 make -j1 DESTDIR=$PKG install
31 mv $PKG/usr/lib/lib*.so.* $PKG/lib
32 ln -sf ../../lib/libhistory.so.${version:0:3} $PKG/usr/lib/libhistory.so
33 ln -sf ../../lib/libreadline.so.${version:0:3} $PKG/usr/lib/libreadline.so
35 install -D -m 644 $SRC/inputrc $PKG/etc/inputrc
36 rm -r $PKG/usr/share/{doc,info}