readline: Pkgfile tweak for zsh compatibility

This commit is contained in:
Matt Housh 2012-09-19 08:01:54 -05:00
parent 67c128ba82
commit a5cbbd1bf0

View File

@ -6,11 +6,11 @@
name=readline
version=6.2.4
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-${version::3}.tar.gz \
source=(http://ftp.gnu.org/gnu/$name/$name-${version:0:3}.tar.gz \
$name-$version.patch.gz inputrc)
build() {
cd $name-${version::3}
cd $name-${version:0:3}
gunzip -c $SRC/$name-$version.patch.gz | patch -p0
@ -23,8 +23,8 @@ build() {
install -d $PKG/lib
mv $PKG/usr/lib/lib*.so.* $PKG/lib
ln -sf ../../lib/libhistory.so.${version::3} $PKG/usr/lib/libhistory.so
ln -sf ../../lib/libreadline.so.${version::3} $PKG/usr/lib/libreadline.so
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
install -D -m 644 $SRC/inputrc $PKG/etc/inputrc
rm -r $PKG/usr/share/info