aboutsummaryrefslogtreecommitdiff
path: root/development/FreeBASIC
diff options
context:
space:
mode:
Diffstat (limited to 'development/FreeBASIC')
-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 ffdc5e4053931..23db0295fcfbb 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 76f4f72e33de2..ac35a18ca3b6d 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"