aboutsummaryrefslogtreecommitdiff
path: root/libraries/netcdf
diff options
context:
space:
mode:
authorArTourter <artourter@gmail.com>2022-09-02 23:21:41 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-09-10 15:19:08 +0700
commitf2b0c37d8f88a21b9391d720e8c6f0f6b2dbb47a (patch)
treeef3bb8a08cc5059dee748ff6e162e3b72a3e827e /libraries/netcdf
parent2218015806934013505cc889f930307104bddb07 (diff)
libraries/netcdf: Updated for version 4.9.0 + new maintainer
Shared library .so-version bump. Signed-off-by: ArTourter <artourter@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/netcdf')
-rw-r--r--libraries/netcdf/README3
-rw-r--r--libraries/netcdf/netcdf.SlackBuild27
-rw-r--r--libraries/netcdf/netcdf.info10
3 files changed, 27 insertions, 13 deletions
diff --git a/libraries/netcdf/README b/libraries/netcdf/README
index dae0880c193e..cfc36a71647c 100644
--- a/libraries/netcdf/README
+++ b/libraries/netcdf/README
@@ -14,3 +14,6 @@ the 'hdf' package from SlackBuilds.org, and then pass the option
HDF4=yes ./netcdf.SlackBuild
+By default, the script does not build nor run the tests. You can use the
+option TESTBUILD=YES to build and run the tests before the make install
+part.
diff --git a/libraries/netcdf/netcdf.SlackBuild b/libraries/netcdf/netcdf.SlackBuild
index 037e0913ff6a..a0b97f612995 100644
--- a/libraries/netcdf/netcdf.SlackBuild
+++ b/libraries/netcdf/netcdf.SlackBuild
@@ -2,6 +2,7 @@
# SlackBuild script for netcdf.
#
+# Copyright 2022 Gregory J. L. Tourte <artourter@gmail.com>
# Copyright 2009 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
# All rights reserved.
#
@@ -22,15 +23,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-# Maintained by David Spencer <baildon.research@googlemail.com>
-# Maintained by Gregory J. L. Tourte <artourter@gmail.com>
+# Maintained until 2018 by David Spencer <baildon.research@googlemail.com>
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=netcdf
SRCNAM=netcdf-c
-VERSION=${VERSION:-4.7.4}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.9.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,6 +70,10 @@ fi
set -e
+if [[ ${TESTBUILD:='NO'} == 'NO' ]]; then
+ TESTBUILDFLAGS='--disable-testsets'
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -78,9 +82,9 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ \( -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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
if [ "${HDF4:-no}" = 'yes' ]; then
@@ -101,12 +105,18 @@ CXXFLAGS="$SLKCFLAGS" \
--datarootdir=/usr \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-static=no \
+ --disable-examples \
+ --disable-plugins \
+ ${TESTBUILDFLAGS} \
${hdf4opt} \
--build=$ARCH-slackware-linux
make
+[[ $TESTBUILD == "YES" ]] && make check
make install DESTDIR=$PKG
+rm -rf examples/C/.{libs,deps}/
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -114,8 +124,9 @@ 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.md README.md RELEASE_NOTES.md VERSION \
- examples/ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYRIGHT README.md RELEASE_NOTES.md \
+ 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 00bfd3510090..24da575129af 100644
--- a/libraries/netcdf/netcdf.info
+++ b/libraries/netcdf/netcdf.info
@@ -1,10 +1,10 @@
PRGNAM="netcdf"
-VERSION="4.7.4"
+VERSION="4.9.0"
HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/"
-DOWNLOAD="https://github.com/Unidata/netcdf-c/archive/v4.7.4/netcdf-c-4.7.4.tar.gz"
-MD5SUM="33979e8f0cf4ee31323fc0934282111b"
+DOWNLOAD="https://github.com/Unidata/netcdf-c/archive/v4.9.0/netcdf-c-4.9.0.tar.gz"
+MD5SUM="27baa260ae527b405c38d1e103c1348b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="hdf5"
-MAINTAINER="David Spencer"
-EMAIL="baildon.research@googlemail.com"
+MAINTAINER="ArTourter"
+EMAIL="artourter@gmail.com"