summaryrefslogtreecommitdiff
path: root/development/FreeBASIC/FreeBASIC.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-10-05 12:50:05 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-10 09:15:08 +0700
commitec89d18bcbf4190834bad9615d927a0dc1297a90 (patch)
tree12d6c11422c717b2d5ee2046ea276e937ededf77 /development/FreeBASIC/FreeBASIC.SlackBuild
parentfd8234d369453b064d60d093f1704a55bf12624f (diff)
downloadslackbuilds-ec89d18bcbf4190834bad9615d927a0dc1297a90.tar.gz
development/FreeBASIC: Update script.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'development/FreeBASIC/FreeBASIC.SlackBuild')
-rw-r--r--development/FreeBASIC/FreeBASIC.SlackBuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/development/FreeBASIC/FreeBASIC.SlackBuild b/development/FreeBASIC/FreeBASIC.SlackBuild
index c099f49a3c..03bfd240ee 100644
--- a/development/FreeBASIC/FreeBASIC.SlackBuild
+++ b/development/FreeBASIC/FreeBASIC.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=FreeBASIC
VERSION=${VERSION:-1.04.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -75,14 +75,20 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-mkdir -p $PKG/usr/bin $PKG/usr/include/${PRGNAM,,} $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM,,} \
- $PKG/usr/man/man1
+mkdir -p $PKG/usr/bin $PKG/usr/include/${PRGNAM,,} $PKG/usr/lib/${PRGNAM,,} \
+ $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM,,} $PKG/usr/man/man1
install -D -m0755 bin/fbc $PKG/usr/bin/fbc
cp -rf include/${PRGNAM,,}/* $PKG/usr/include/${PRGNAM,,}
cp -rf lib/${PRGNAM,,}/* $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM,,}
-gzip -c doc/fbc.1 > $PKG/usr/man/man1/fbc.1.gz
+# 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,,}
+ )
+fi
# fix linking with libtinfo over libncurses
if [[ -L "/usr/lib${LIBDIRSUFFIX}/libtinfo.so.5" && -f "/usr/lib${LIBDIRSUFFIX}/libtinfo.so.5" ]]; then
@@ -94,6 +100,9 @@ else
)
fi
+# gzip man page
+gzip -c doc/fbc.1 > $PKG/usr/man/man1/fbc.1.gz
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild