diff options
Diffstat (limited to 'readline')
-rw-r--r--[-rwxr-xr-x] | readline/Pkgfile | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/readline/Pkgfile b/readline/Pkgfile index 1f96dd177..b21a99b66 100755..100644 --- a/readline/Pkgfile +++ b/readline/Pkgfile @@ -5,26 +5,30 @@ name=readline version=6.2 -release=1 +release=2 source=( http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz) + build() { -cd $name-$version -sed -i '/MV.*old/d' Makefile.in -sed -i '/{OLDSUFF}/c:' support/shlib-install + cd $name-$version + + export LDFLAGS="-I%{_includedir}/ncursesw -lncursesw" + sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf -./configure --prefix=/usr \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --libdir=/lib -make SHLIBS=-lncurses -make DESTDIR=$PKG install + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --libdir=/lib \ + --enable-multibyte \ + --with-curses + make + make DESTDIR=$PKG install -mkdir -p $PKG/usr/lib -mv -v $PKG/lib/lib{readline,history}.a $PKG/usr/lib -rm -v $PKG/lib/lib{readline,history}.so -ln -sfv ../../lib/libreadline.so.6 $PKG/usr/lib/libreadline.so -ln -sfv ../../lib/libhistory.so.6 $PKG/usr/lib/libhistory.so -if [ -f $PKG/usr/share/info/dir ]; then - rm $PKG/usr/share/info/dir -fi + mkdir -p $PKG/usr/lib + mv -v $PKG/lib/lib{readline,history}.a $PKG/usr/lib + rm -v $PKG/lib/lib{readline,history}.so + ln -sfv ../../lib/libreadline.so.6 $PKG/usr/lib/libreadline.so + ln -sfv ../../lib/libhistory.so.6 $PKG/usr/lib/libhistory.so + if [ -f $PKG/usr/share/info/dir ]; then + rm $PKG/usr/share/info/dir + fi } |