development/FreeBASIC: Fixed SlackBuild.

Create libtinfo.5 symlink in $PKG. Don't need subshells.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-02-21 19:14:23 +00:00 committed by Willy Sudiarto Raharjo
parent f212697f4e
commit e209d6a758

View file

@ -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