diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-02-25 21:58:09 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-27 13:22:27 +0700 |
commit | b29af5ecff10793dc6197107f10a28c611f0ba6b (patch) | |
tree | 7ba705363f838603ec2f51097bb475154303ad3b /libraries/netcdf/netcdf.SlackBuild | |
parent | a54850ed6fff389333973064b8f9256851fde0b5 (diff) | |
download | slackbuilds-b29af5ecff10793dc6197107f10a28c611f0ba6b.tar.gz |
libraries/netcdf: Updated for version 4.4.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/netcdf/netcdf.SlackBuild')
-rw-r--r-- | libraries/netcdf/netcdf.SlackBuild | 15 |
1 files changed, 10 insertions, 5 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 |