aboutsummaryrefslogtreecommitdiff
path: root/libraries/netcdf
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-02-25 21:58:09 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-27 13:22:27 +0700
commitb29af5ecff10793dc6197107f10a28c611f0ba6b (patch)
tree7ba705363f838603ec2f51097bb475154303ad3b /libraries/netcdf
parenta54850ed6fff389333973064b8f9256851fde0b5 (diff)
libraries/netcdf: Updated for version 4.4.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/netcdf')
-rw-r--r--libraries/netcdf/netcdf.SlackBuild15
-rw-r--r--libraries/netcdf/netcdf.info6
2 files changed, 13 insertions, 8 deletions
diff --git a/libraries/netcdf/netcdf.SlackBuild b/libraries/netcdf/netcdf.SlackBuild
index 6292500e3ca89..6a516db5b0b82 100644
--- a/libraries/netcdf/netcdf.SlackBuild
+++ b/libraries/netcdf/netcdf.SlackBuild
@@ -25,7 +25,8 @@
# Maintained by David Spencer <baildon.research@googlemail.com>
PRGNAM=netcdf
-VERSION=${VERSION:-4.3.3.1}
+SRCNAM=netcdf-c
+VERSION=${VERSION:-4.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,9 +62,13 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+if [ -f $CWD/v$VERSION.tar.gz ]; then
+ tar xvf $CWD/v$VERSION.tar.gz
+else
+ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+fi
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -95,7 +100,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COMPILE.cmake.txt COPYRIGHT INSTALL README.md RELEASE_NOTES.md VERSION \
+cp -a COMPILE.cmake.txt COPYRIGHT INSTALL.md README.md RELEASE_NOTES.md VERSION \
examples/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG
diff --git a/libraries/netcdf/netcdf.info b/libraries/netcdf/netcdf.info
index 9ac84d23742fe..50a3b332297e8 100644
--- a/libraries/netcdf/netcdf.info
+++ b/libraries/netcdf/netcdf.info
@@ -1,8 +1,8 @@
PRGNAM="netcdf"
-VERSION="4.3.3.1"
+VERSION="4.4.0"
HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf/"
-DOWNLOAD="ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.3.1.tar.gz"
-MD5SUM="5c9dad3705a3408d27f696e5b31fb88c"
+DOWNLOAD="https://github.com/Unidata/netcdf-c/archive/v4.4.0.tar.gz"
+MD5SUM="4e3d3b05ab53d0ae6036a1a0fe1506e5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""