summaryrefslogtreecommitdiff
path: root/graphics/VariCAD/VariCAD.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-06-28 08:54:24 -0500
committerErik Hanson <erik@slackbuilds.org>2010-06-29 00:36:36 -0500
commita3932df47bf9dc82990b000df3128f352b6b4f86 (patch)
treecdf09d848c20b05d8a74966dd4a7b6b03d2936a7 /graphics/VariCAD/VariCAD.SlackBuild
parent448751babbc54cbc9253fc15f291fbadb239fdce (diff)
downloadslackbuilds-a3932df47bf9dc82990b000df3128f352b6b4f86.tar.gz
graphics/VariCAD: Updated for version 2010_2.08.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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}
-