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 }