summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-04-09 22:21:58 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-04-12 10:06:46 +0700
commit0859aab96881d0aeb55004ca1a2b61fb0e21ed61 (patch)
tree7ea974e62b1ead2de838497629129eeab4a0f94f
parentd5b660fccfbfa164b9af709df8b89388a7e29a5b (diff)
downloadslackbuilds-0859aab96881d0aeb55004ca1a2b61fb0e21ed61.tar.gz
development/FreeBASIC: Updated for version 1.02.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
-rw-r--r--development/FreeBASIC/FreeBASIC.SlackBuild26
-rw-r--r--development/FreeBASIC/FreeBASIC.info10
2 files changed, 26 insertions, 10 deletions
diff --git a/development/FreeBASIC/FreeBASIC.SlackBuild b/development/FreeBASIC/FreeBASIC.SlackBuild
index ffdc5e4053..23db0295fc 100644
--- a/development/FreeBASIC/FreeBASIC.SlackBuild
+++ b/development/FreeBASIC/FreeBASIC.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for FreeBASIC
-# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# Copyright 2014 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=FreeBASIC
-SRCVER=${SRCVER:-0.90.1-linux}
-VERSION=$(echo $SRCVER | cut -c1-6)
+VERSION=${VERSION:-1.02.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,6 +56,12 @@ fi
set -e
+if [ "$ARCH" = "x86_64" ]; then
+ SRCVER=$(echo $VERSION-linux-x86_64)
+else
+ SRCVER=$(echo $VERSION-linux-x86)
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -70,16 +75,27 @@ 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/${PRGNAM,,} \
+mkdir -p $PKG/usr/bin $PKG/usr/include/${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/${PRGNAM,,}
+cp -rf lib/${PRGNAM,,}/* $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM,,}
gzip -c doc/fbc.1 > $PKG/usr/man/man1/fbc.1.gz
+# 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
+
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
mkdir -p $PKG/install
diff --git a/development/FreeBASIC/FreeBASIC.info b/development/FreeBASIC/FreeBASIC.info
index 76f4f72e33..ac35a18ca3 100644
--- a/development/FreeBASIC/FreeBASIC.info
+++ b/development/FreeBASIC/FreeBASIC.info
@@ -1,10 +1,10 @@
PRGNAM="FreeBASIC"
-VERSION="0.90.1"
+VERSION="1.02.0"
HOMEPAGE="http://www.freebasic.net"
-DOWNLOAD="http://sourceforge.net/projects/fbc/files/Older%20versions/0.90.1/Binaries%20-%20Linux/FreeBASIC-0.90.1-linux.tar.gz"
-MD5SUM="0aae7fd862f2690438678381f61e436a"
-DOWNLOAD_x86_64="UNSUPPORTED"
-MD5SUM_x86_64="UNSUPPORTED"
+DOWNLOAD="http://downloads.sourceforge.net/fbc/FreeBASIC-1.02.0-linux-x86.tar.gz"
+MD5SUM="7b9b89ed36ba2d3d3d6cc6fe68460040"
+DOWNLOAD_x86_64="http://downloads.sourceforge.net/fbc/FreeBASIC-1.02.0-linux-x86_64.tar.gz"
+MD5SUM_x86_64="f60d2da05b1979b055aecbf8e5efb708"
REQUIRES="jdk"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"