readline: move so symlink into main pkg.

--HG--
extra : convert_revision : 8bf05a2357e39907f467f0114855aa07986b48cc
This commit is contained in:
Juan RP 2010-04-22 12:04:42 +02:00
parent a0e98e1bd6
commit 1f05445a24
2 changed files with 11 additions and 7 deletions

View file

@ -5,15 +5,15 @@ long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
revision=1
revision=2
Add_dependency run glibc-devel
Add_dependency run readline
do_install()
{
mkdir -p ${DESTDIR}
mv ${SRCPKGDESTDIR}/usr ${DESTDIR}
cd ${DESTDIR}/usr/lib && \
ln -s ../../lib/libreadline.so.6 libreadline.so
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib
}

View file

@ -3,7 +3,7 @@ pkgname=readline
_dist_ver=6.1
_patch_ver=001
version=${_dist_ver}.${_patch_ver}
revision=1
revision=2
wrksrc=${pkgname}-${_dist_ver}
distfiles="http://ftp.gnu.org/gnu/readline/${pkgname}-${_dist_ver}.tar.gz"
build_style=gnu_configure
@ -52,5 +52,9 @@ post_install()
mkdir -p ${DESTDIR}/lib
mv ${DESTDIR}/usr/lib/lib*.so.* ${DESTDIR}/lib
chmod 755 ${DESTDIR}/lib/*.so*
rm -f ${DESTDIR}/usr/lib/lib*.so
rm -f ${DESTDIR}/usr/lib/*.so
for f in history readline; do
cd ${DESTDIR}/usr/lib && \
ln -s ../../lib/lib${f}.so.6 lib${f}.so
done
}