drwxr-xr-x root/root etc/
-rw-r--r-- root/root etc/inputrc
drwxr-xr-x root/root lib/
+lrwxrwxrwx root/root lib/libhistory.so.6 -> libhistory.so.7.0
lrwxrwxrwx root/root lib/libhistory.so.7 -> libhistory.so.7.0
-r-xr-xr-x root/root lib/libhistory.so.7.0
+lrwxrwxrwx root/root lib/libreadline.so.6 -> libreadline.so.7.0
lrwxrwxrwx root/root lib/libreadline.so.7 -> libreadline.so.7.0
-r-xr-xr-x root/root lib/libreadline.so.7.0
drwxr-xr-x root/root usr/
553cf04fdeec54dca12062864c3ffba3 inputrc
+820e38dae6c7ab9f6993928e954fb41b readline-7.0.3.patch.gz
205b03a87fc83dab653b628c59b9fc91 readline-7.0.tar.gz
# Depends on: ncurses
name=readline
-version=7.0
+version=7.0.3
release=1
-source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz
- inputrc)
+source=(http://ftpmirror.gnu.org/gnu/$name/$name-${version:0:3}.tar.gz
+ $name-$version.patch.gz inputrc)
build() {
- cd $name-$version
+ cd $name-${version:0:3}
+
+ gunzip -c $SRC/$name-$version.patch.gz | patch -p0
# Don't use rpath for linking the shared libs
sed -i '117s/-Wl,-rpath,$(libdir)//' support/shobj-conf
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}
}