academic/scilab: Fix .pc file location.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-01-07 01:39:05 +00:00
parent badb5b870a
commit ffda167b71

View file

@ -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