summaryrefslogtreecommitdiff
path: root/academic/scilab/scilab.SlackBuild
diff options
context:
space:
mode:
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