From f3a53a261fd1b4f67354f28c254cf93bc2b30a0d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 May 2010 21:47:22 +0200 Subject: [PATCH] ncurses32: fix soname symlinks. --- srcpkgs/ncurses32/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/ncurses32/template b/srcpkgs/ncurses32/template index f318abc475..d8906db5b8 100644 --- a/srcpkgs/ncurses32/template +++ b/srcpkgs/ncurses32/template @@ -45,4 +45,12 @@ do_install() install -d ${DESTDIR}/lib32 ${DESTDIR}/usr/lib32 cp -a ${wrksrc}/lib/*.so* ${DESTDIR}/lib32 cp -a ${wrksrc}/usr/lib/*.{a,so*} ${DESTDIR}/usr/lib32 + mv ${DESTDIR}/usr/lib32/*.so.${version} ${DESTDIR}/lib32 + rm -f ${DESTDIR}/usr/lib32/*.so* + # Remake the symlinks with proper path to /lib32. + for f in panel panelw form formw menu menuw ncurses ncursesw; do + cd ${DESTDIR}/usr/lib32 && \ + ln -sf ../../lib32/lib${f}.so.${version} lib${f}.so && \ + ln -sf ../../lib32/lib${f}.so.${version} lib${f}.so.5 + done }