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.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/