aboutsummaryrefslogtreecommitdiff
path: root/development/FreeBASIC
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-02-21 19:14:23 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-23 00:57:48 +0700
commite209d6a758df7a8db0fd6bd2e4282d3c82fea653 (patch)
tree8bd2a33c0d25aaea011698c5d6b6133f2be233b8 /development/FreeBASIC
parentf212697f4e8ac643a66b10cbe08448dd01b0c142 (diff)
development/FreeBASIC: Fixed SlackBuild.
Create libtinfo.5 symlink in $PKG. Don't need subshells. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/FreeBASIC')
-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 6165c526643a3..f3f5dec442133 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