From f7276bfb757891877c9907a041eb763b6aa05d3c Mon Sep 17 00:00:00 2001 From: Tom Yan Date: Sat, 9 Jun 2018 03:00:17 +0800 Subject: [PATCH] ncurses: fix versioned library symlinking --- packages/ncurses/build.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/ncurses/build.sh b/packages/ncurses/build.sh index 972ce385d..528b6fa60 100755 --- a/packages/ncurses/build.sh +++ b/packages/ncurses/build.sh @@ -42,14 +42,19 @@ termux_step_pre_configure() { termux_step_post_make_install () { cd $TERMUX_PREFIX/lib + # we need the rm as we create(d) symlinks for the versioned so as well for lib in form menu ncurses panel; do + rm -f lib${lib}.so* for file in lib${lib}w.so*; do - ln -s -f $file `echo $file | sed 's/w//'` + ln -s $file ${file/w./.} done - (cd pkgconfig && ln -s -f ${lib}w.pc `echo $lib | sed 's/w//'`.pc) + (cd pkgconfig; ln -sf ${lib}w.pc $lib.pc) done # some packages want libcurses while building/compiling - ln -sf libncurses.so libcurses.so + rm -f libcurses.so* + for file in libncurses.so*; do + ln -s $file ${file/libn/lib} + done # Some packages want these: cd $TERMUX_PREFIX/include/