From e809240074fa21f3810a52d8eed2a3ca00a41880 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 22 Apr 2010 12:21:52 +0200 Subject: [PATCH] ncursesw: move so symlink into main pkg. --HG-- extra : convert_revision : 608905e729d6346a5e7d755b4ef3eacf72b245ef --- srcpkgs/ncursesw/ncursesw-devel.template | 3 ++- srcpkgs/ncursesw/template | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/srcpkgs/ncursesw/ncursesw-devel.template b/srcpkgs/ncursesw/ncursesw-devel.template index 5bdf9780298..612d5acf934 100644 --- a/srcpkgs/ncursesw/ncursesw-devel.template +++ b/srcpkgs/ncursesw/ncursesw-devel.template @@ -5,6 +5,8 @@ long_desc="${long_desc} This package contains files for development: headers, static libs, etc." +revision=1 + Add_dependency run glibc-devel Add_dependency run ncurses-devel Add_dependency run ncursesw @@ -16,6 +18,5 @@ do_install() mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib - cd ${DESTDIR}/usr/lib && ln -s libncursesw.so.5 libncursesw.so mv ${SRCPKGDESTDIR}/usr/bin/ncursesw5* ${DESTDIR}/usr/bin } diff --git a/srcpkgs/ncursesw/template b/srcpkgs/ncursesw/template index b5f5451f5cf..f8257be5a22 100644 --- a/srcpkgs/ncursesw/template +++ b/srcpkgs/ncursesw/template @@ -1,6 +1,7 @@ # Template build file for 'ncursesw'. pkgname=ncursesw version=5.7 +revision=1 wrksrc="ncurses-${version}" distfiles="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-$version.tar.gz" build_style=gnu_configure @@ -28,7 +29,10 @@ post_install() rm -f ${DESTDIR}/usr/lib/lib*.so rm -f ${DESTDIR}/usr/lib/libncursesw.so.5 mkdir -p ${DESTDIR}/lib - mv ${DESTDIR}/usr/lib/libncursesw.so.5.7 ${DESTDIR}/lib - cd ${DESTDIR}/usr/lib && \ - ln -sf ../../lib/libncursesw.so.5.7 libncursesw.so.5 + mv ${DESTDIR}/usr/lib/lib*.so.5.7 ${DESTDIR}/lib + for f in panelw formw ncursesw menuw; do + cd ${DESTDIR}/usr/lib && \ + ln -sf ../../lib/lib${f}.so.5.7 lib${f}.so.5 && \ + ln -sf ../../lib/lib${f}.so.5.7 lib${f}.so + done }