summaryrefslogtreecommitdiffstats
path: root/academic/copasi/copasi.SlackBuild
diff options
context:
space:
mode:
author Pedro Mendes <pedro@gepasi.org>2016-11-24 21:59:17 +0000
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-11-26 11:47:24 +0700
commit37854d6e4d41ae68302f304c3c5109f41d7d3287 (patch)
treebdf803739ec652d20c15d65b825dbfe99f93ebac /academic/copasi/copasi.SlackBuild
parent197beb8a2dbd7834e94e5ff05148311e15d7dd01 (diff)
downloadslackbuilds-37854d6e4d41ae68302f304c3c5109f41d7d3287.tar.gz
slackbuilds-37854d6e4d41ae68302f304c3c5109f41d7d3287.tar.xz
academic/copasi: Updated for version 4.17.135.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'academic/copasi/copasi.SlackBuild')
-rw-r--r--academic/copasi/copasi.SlackBuild19
1 files changed, 9 insertions, 10 deletions
diff --git a/academic/copasi/copasi.SlackBuild b/academic/copasi/copasi.SlackBuild
index c8d7c71843..58752ab156 100644
--- a/academic/copasi/copasi.SlackBuild
+++ b/academic/copasi/copasi.SlackBuild
@@ -23,12 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=copasi
-VERSION=${VERSION:-4.16.104}
+VERSION=${VERSION:-4.17.135}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
case "$(uname -m)" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$(uname -m) ;;
esac
@@ -38,12 +38,12 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
+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..."
+ echo "$ARCH is not supported by the $PRGNAM build script."
exit 1
fi
@@ -55,16 +55,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf COPASI-$VERSION-$BINNAME
tar xvf $CWD/COPASI-$VERSION-$BINNAME.tar.gz
-mv COPASI-$VERSION-$BINNAME $PRGNAM-$VERSION
-cd $PRGNAM-$VERSION
+cd COPASI-$VERSION-$BINNAME
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/bin $PKG/usr/share/{copasi,pixmaps,applications}
cp -a bin/* $PKG/usr/bin/