summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2013-11-04 23:43:12 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-11-04 22:13:53 -0600
commit953da6902a110a1383e67a6fcc1e772bb6f084f1 (patch)
tree19d822c22924dc7d6323d15fc3680e9976a5b178
parentd6384027a20b1afa326d94f9bd886dbeefe6ed95 (diff)
downloadslackbuilds-953da6902a110a1383e67a6fcc1e772bb6f084f1.tar.gz
libraries/netcdf: Updated for version 4.3.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--libraries/netcdf/netcdf.SlackBuild20
-rw-r--r--libraries/netcdf/netcdf.info6
2 files changed, 13 insertions, 13 deletions
diff --git a/libraries/netcdf/netcdf.SlackBuild b/libraries/netcdf/netcdf.SlackBuild
index 2d5ea40867..c637054123 100644
--- a/libraries/netcdf/netcdf.SlackBuild
+++ b/libraries/netcdf/netcdf.SlackBuild
@@ -26,16 +26,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=netcdf
-VERSION=4.1.1
+VERSION=${VERSION:-4.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -68,7 +66,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find -L . \
+ \( -perm 777 -o -perm 775 -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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -80,7 +82,9 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--datarootdir=/usr \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --enable-shared
+ --enable-shared \
+ --disable-netcdf-4 \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -88,14 +92,10 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Compress man pages
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
-# sort out the info files
-rm -f $PKG/usr/info/dir
-gzip -9 $PKG/usr/info/*.info*
-
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYRIGHT INSTALL README RELEASE_NOTES 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
diff --git a/libraries/netcdf/netcdf.info b/libraries/netcdf/netcdf.info
index a7949f0fb7..ebfb3e153f 100644
--- a/libraries/netcdf/netcdf.info
+++ b/libraries/netcdf/netcdf.info
@@ -1,8 +1,8 @@
PRGNAM="netcdf"
-VERSION="4.1.1"
+VERSION="4.3.0"
HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf/"
-DOWNLOAD="http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.1.1.tar.gz"
-MD5SUM="79c5ff14c80d5e18dd8f1fceeae1c8e1"
+DOWNLOAD="ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.0.tar.gz"
+MD5SUM="39fc507bf2966980fa92defecd9d2167"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""