diff options
Diffstat (limited to 'academic/scilab/scilab.SlackBuild')
-rw-r--r-- | academic/scilab/scilab.SlackBuild | 10 |
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 |