diff options
-rw-r--r-- | libraries/netcdf/netcdf.SlackBuild | 15 | ||||
-rw-r--r-- | libraries/netcdf/netcdf.info | 6 |
2 files changed, 13 insertions, 8 deletions
diff --git a/libraries/netcdf/netcdf.SlackBuild b/libraries/netcdf/netcdf.SlackBuild index 6292500e3c..6a516db5b0 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 9ac84d2374..50a3b33229 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="" |