diff options
Diffstat (limited to 'academic/cdo/cdo.SlackBuild')
-rw-r--r-- | academic/cdo/cdo.SlackBuild | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/academic/cdo/cdo.SlackBuild b/academic/cdo/cdo.SlackBuild index 131526a355..bc0583a4da 100644 --- a/academic/cdo/cdo.SlackBuild +++ b/academic/cdo/cdo.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for cdo -# Copyright 2020 Gregory J. L. Tourte <artourter@gmail.com> +# Copyright 2020-2024 Gregory J. L. Tourte <artourter@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cdo -VERSION=${VERSION:-1.9.10} +VERSION=${VERSION:-2.4.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -66,6 +66,8 @@ fi set -e +TESTBUILD=${TESTBUILD:-NO} + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -74,31 +76,31 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -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 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + -# static. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --with-eccodes=yes \ --with-szlib=yes \ --with-netcdf=yes \ --with-hdf5=yes \ - --with-udunits2 \ --with-threads=yes \ - --disable-static \ + --with-udunits2 \ --with-fftw3 \ --with-proj \ --with-curl \ --with-libxml2 \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-silent-rules \ --build=$ARCH-slackware-linux make +[[ $TESTBUILD == "YES" ]] && make check make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -106,7 +108,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING ChangeLog INSTALL NEWS OPERATORS README \ + AUTHORS ChangeLog LICENSE NEWS OPERATORS README \ doc/*.pdf \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |