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>
This commit is contained in:
parent
2218015806
commit
f2b0c37d8f
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue