summaryrefslogtreecommitdiff
path: root/academic/scilab/scilab.SlackBuild
diff options
context:
space:
mode:
authorEdward W. Koenig <kingbeowulf@gmail.com>2018-08-09 21:24:00 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-11 07:23:09 +0700
commit66f7f0aa09e3ea2b5b2159d7b4b474d384882905 (patch)
tree8693ffb537d917cc048183b61c8380fb551733d7 /academic/scilab/scilab.SlackBuild
parent59e2ad3e27d9f5ace755f0fda7385ee8d8bea0da (diff)
downloadslackbuilds-66f7f0aa09e3ea2b5b2159d7b4b474d384882905.tar.gz
academic/scilab: Updated for version 6.0.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'academic/scilab/scilab.SlackBuild')
-rw-r--r--academic/scilab/scilab.SlackBuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/academic/scilab/scilab.SlackBuild b/academic/scilab/scilab.SlackBuild
index c519a10aab..bd22d264d9 100644
--- a/academic/scilab/scilab.SlackBuild
+++ b/academic/scilab/scilab.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for Scilab
# Copyright 2011-2015 Fridrich von Stauffenberg <cancellor2@gmail.com>
+# Copyright 2018 Edward W. Koenig ,kingbeowulf@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=scilab
-VERSION=${VERSION:-6.0.0}
+VERSION=${VERSION:-6.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -64,9 +65,14 @@ cat $CWD/profile.d/$PRGNAM.sh > $PKG/etc/profile.d/$PRGNAM.sh
cat $CWD/profile.d/$PRGNAM.csh > $PKG/etc/profile.d/$PRGNAM.csh
chmod 0755 $PKG/etc/profile.d/*
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} $PKG/usr/share
-mv lib/pkgconfig $PKG/usr/lib${LIBDIRSUFFIX}
-mv share/applications share/icons share/mime $PKG/usr/share/
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig $PKG/usr/share/{applications,icons,mime}
+mv $PKG/opt/$PRGNAM/lib/pkgconfig $PKG/usr/lib${LIBDIRSUFFIX}
+mv $PKG/opt/$PRGNAM/share/mime $PKG/usr/share
+mv $PKG/opt/$PRGNAM/share/icons $PKG/usr/share
+
+# fix issues with .desktop files due to upstream bugs
+rm -rf $PKG/opt/$PRGNAM/share/applications
+cp -a $CWD/*.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv ACKNOWLEDGE* CHANGES* COPYING* README* $PKG/usr/doc/$PRGNAM-$VERSION