summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/FreeBASIC/FreeBASIC.SlackBuild21
1 files changed, 9 insertions, 12 deletions
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