summaryrefslogtreecommitdiff
path: root/graphics/VariCAD/VariCAD.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/VariCAD/VariCAD.SlackBuild')
-rw-r--r--graphics/VariCAD/VariCAD.SlackBuild30
1 files changed, 12 insertions, 18 deletions
diff --git a/graphics/VariCAD/VariCAD.SlackBuild b/graphics/VariCAD/VariCAD.SlackBuild
index 1444f2961b..b1d9373661 100644
--- a/graphics/VariCAD/VariCAD.SlackBuild
+++ b/graphics/VariCAD/VariCAD.SlackBuild
@@ -5,10 +5,10 @@
# Written by Niels Horn <niels.horn@gmail.com>
# with inspiration from the OpenOffice.org SlackBuild, so thanks to Robby Workman :)
-# Revision date: 2010/04/23
+# Revision date: 2010/06/20
PRGNAM=VariCAD
-VERSION=${VERSION:-2010_2.06}
+VERSION=${VERSION:-2010_2.08}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -18,33 +18,28 @@ SRCLANG=en
# The versioning of the 'source' RPM is a bit different:
SRCVERSION=$(echo $VERSION | sed "s/_/-$SRCLANG-/")
-# Automatically determine the architecture we're building on:
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
- *) ARCH=$( uname -m ) ;;
- esac
-fi
+case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+esac
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" -o "$ARCH" = "i686" ]; then
+if [ "$ARCH" = "i486" ]; then
SRCARCH="i586"
PKGARCH="i586"
elif [ "$ARCH" = "x86_64" ]; then
- SRCARCH="x86_64"
+ SRCARCH="$ARCH"
PKGARCH="$ARCH"
+else
+ printf "$ARCH is not supported...\n"
+ exit 1
fi
-echo "SRCVERSION $SRCVERSION"
-echo "SRCARCH $SRCARCH"
-echo "PKGARCH $PKGARCH"
-
set -e
rm -rf $PKG
@@ -75,4 +70,3 @@ chmod a+w $PKG/opt/$PRGNAM/lib
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$PKGARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-