summaryrefslogtreecommitdiff
path: root/academic/copasi/copasi.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/copasi/copasi.SlackBuild')
-rw-r--r--academic/copasi/copasi.SlackBuild30
1 files changed, 16 insertions, 14 deletions
diff --git a/academic/copasi/copasi.SlackBuild b/academic/copasi/copasi.SlackBuild
index d446a59979..ea41da828c 100644
--- a/academic/copasi/copasi.SlackBuild
+++ b/academic/copasi/copasi.SlackBuild
@@ -23,14 +23,25 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=copasi
-VERSION=${VERSION:-4.27.217}
+VERSION=${VERSION:-4.28.226}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-case "$(uname -m)" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$(uname -m) ;;
+if [ -z "$ARCH" ]; then
+ ARCH="$(uname -m)"
+fi
+
+case "$ARCH" in
+ i?86)
+ BINNAME="Linux-32bit"
+ ;;
+ x86_64)
+ BINNAME="Linux-64bit"
+ ;;
+ *)
+ echo "$ARCH is not supported by the $PRGNAM build script..."
+ exit 1
+ ;;
esac
CWD=$(pwd)
@@ -38,15 +49,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- BINNAME="Linux-32bit"
-elif [ "$ARCH" = "x86_64" ]; then
- BINNAME="Linux-64bit"
-else
- echo "$ARCH is not supported by the $PRGNAM build script..."
- exit 1
-fi
-
# This is a repackage of a binary distribution
# CFLAGS are not required