summaryrefslogtreecommitdiff
path: root/academic/TauDEM/TauDEM.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/TauDEM/TauDEM.SlackBuild')
-rw-r--r--academic/TauDEM/TauDEM.SlackBuild25
1 files changed, 10 insertions, 15 deletions
diff --git a/academic/TauDEM/TauDEM.SlackBuild b/academic/TauDEM/TauDEM.SlackBuild
index 995df9a5af..fd7637f8a9 100644
--- a/academic/TauDEM/TauDEM.SlackBuild
+++ b/academic/TauDEM/TauDEM.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for TauDEM
-# Copyright 2012 Alexander Bruy <alexander.bruy@gmail.com>
+# Copyright 2012-2015 Alexander Bruy <alexander.bruy@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,12 +23,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=TauDEM
-VERSION=${VERSION:-5.0.6}
+PACKAGENAME=TauDEM-5MF.0.0
+VERSION=${VERSION:-5.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-ZIPNAME=TauDEM5PCsrc_506
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -61,19 +60,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf src
-unzip $CWD/$ZIPNAME.zip
-cd src
+rm -rf $PACKAGENAME
+tar xvf $CWD/$PACKAGENAME.tar.gz || tar xvf $CWD/5MF.0.0.tar.gz
+cd $PACKAGENAME/src
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 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-# fixes for building under Linux
-sed -i -e '41 a #include <stdint.h>' ./linearpart.h
-sed -i -e 's/#include "stdint.h"/#include <stdint.h>/' tiffIO.h
+ \( -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 {} \;
mkdir -p build
cd build