summaryrefslogtreecommitdiff
path: root/academic/scilab/scilab.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-07 01:39:05 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-01-07 01:39:05 +0000
commitffda167b71d9fee46246133c5e140a8693c19f4a (patch)
tree3156d305645bff56afe4b34174bd9a1240580177 /academic/scilab/scilab.SlackBuild
parentbadb5b870abfb2657aca3be52b84160fbac41121 (diff)
downloadslackbuilds-ffda167b71d9fee46246133c5e140a8693c19f4a.tar.gz
academic/scilab: Fix .pc file location.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'academic/scilab/scilab.SlackBuild')
-rw-r--r--academic/scilab/scilab.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/academic/scilab/scilab.SlackBuild b/academic/scilab/scilab.SlackBuild
index 9367017a7a..762d9b2dfa 100644
--- a/academic/scilab/scilab.SlackBuild
+++ b/academic/scilab/scilab.SlackBuild
@@ -40,7 +40,11 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" != "i686" ] && [ "$ARCH" != "x86_64" ]; then
+if [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+else
printf "\n\n$ARCH is not supported...\n"
exit 1
fi
@@ -60,8 +64,8 @@ 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 $PKG/usr/share
-mv lib/pkgconfig $PKG/usr/lib
+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/doc/$PRGNAM-$VERSION