From ffda167b71d9fee46246133c5e140a8693c19f4a Mon Sep 17 00:00:00 2001 From: David Spencer Date: Thu, 7 Jan 2016 01:39:05 +0000 Subject: academic/scilab: Fix .pc file location. Signed-off-by: David Spencer --- academic/scilab/scilab.SlackBuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'academic/scilab') 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 -- cgit v1.2.3