aboutsummaryrefslogtreecommitdiff
path: root/academic/cdo/cdo.SlackBuild
diff options
context:
space:
mode:
authorArTourter <artourter@gmail.com>2022-09-02 23:34:57 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-14 17:53:45 +0700
commit3390b7b2836f5ab23bb05bd5bd1de896942d5152 (patch)
tree59061af8a4966173a4800a9226c646d5f67033c5 /academic/cdo/cdo.SlackBuild
parentfb293f2507fa989b09563c16f5e13218b6b2706c (diff)
downloadslackbuilds-3390b7b2836f5ab23bb05bd5bd1de896942d5152.tar.xz
academic/cdo: Updated for version 2.0.6
Signed-off-by: ArTourter <artourter@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/cdo/cdo.SlackBuild')
-rw-r--r--academic/cdo/cdo.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/academic/cdo/cdo.SlackBuild b/academic/cdo/cdo.SlackBuild
index 05ed05631323..e49004c589b9 100644
--- a/academic/cdo/cdo.SlackBuild
+++ b/academic/cdo/cdo.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cdo
-VERSION=${VERSION:-2.0.4}
+VERSION=${VERSION:-2.0.6}
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
@@ -79,26 +81,27 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# static.
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-static \
--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 +109,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 COPYING ChangeLog NEWS OPERATORS README \
doc/*.pdf \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild