diff options
author | tnut <tnut at nutyx dot com> | 2012-01-21 20:39:15 +0100 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-01-21 20:39:15 +0100 |
commit | 5274513169fadda1d0c24b9046badb65f504ed52 (patch) | |
tree | 3d7a7343e698eaa4875fbfbf389b9b0f9592e218 /readline | |
parent | b2ac8562039daebd8730bef994b695834ce74492 (diff) | |
download | nutyx-pakxe-5274513169fadda1d0c24b9046badb65f504ed52.tar.gz nutyx-pakxe-5274513169fadda1d0c24b9046badb65f504ed52.tar.bz2 nutyx-pakxe-5274513169fadda1d0c24b9046badb65f504ed52.tar.xz nutyx-pakxe-5274513169fadda1d0c24b9046badb65f504ed52.zip |
readline, correction Pkgfile, merci piernov
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 } |