From e209d6a758df7a8db0fd6bd2e4282d3c82fea653 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Sun, 21 Feb 2016 19:14:23 +0000 Subject: development/FreeBASIC: Fixed SlackBuild. Create libtinfo.5 symlink in $PKG. Don't need subshells. Signed-off-by: David Spencer --- development/FreeBASIC/FreeBASIC.SlackBuild | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'development') diff --git a/development/FreeBASIC/FreeBASIC.SlackBuild b/development/FreeBASIC/FreeBASIC.SlackBuild index 6165c52664..f3f5dec442 100644 --- a/development/FreeBASIC/FreeBASIC.SlackBuild +++ b/development/FreeBASIC/FreeBASIC.SlackBuild @@ -84,21 +84,18 @@ cp -rf lib/${PRGNAM,,}/* $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM,,} # fix linking library for x86_64 arch if [ "$ARCH" = "x86_64" ]; then - ( - cd /usr/lib${LIBDIRSUFFIX} - ln -s /usr/lib${LIBDIRSUFFIX}/${PRGNAM,,}/linux-x86_64 $PKG/usr/lib/${PRGNAM,,} - ) + ln -sf \ + /usr/lib${LIBDIRSUFFIX}/${PRGNAM,,}/linux-x86_64 \ + $PKG/usr/lib/${PRGNAM,,} fi # fix linking with libtinfo over libncurses -if [[ -L "/usr/lib${LIBDIRSUFFIX}/libtinfo.so.5" && -f "/usr/lib${LIBDIRSUFFIX}/libtinfo.so.5" ]]; then - echo "Symlink to ncurses is ready" -else - ( - cd /usr/lib${LIBDIRSUFFIX} - ln -s /usr/lib${LIBDIRSUFFIX}/libncurses.so.5 libtinfo.so.5 - ) -fi +ln -sf \ + /usr/lib${LIBDIRSUFFIX}/libncurses.so.5 \ + $PKG/usr/lib${LIBDIRSUFFIX}/libtinfo.so.5 +ln -sf \ + /usr/lib${LIBDIRSUFFIX}/libtinfo.so.5 \ + $PKG/usr/lib${LIBDIRSUFFIX}/libtinfo.so # gzip man page gzip -c doc/fbc.1 > $PKG/usr/man/man1/fbc.1.gz -- cgit v1.2.3