aboutsummaryrefslogtreecommitdiff
path: root/libraries/hdf5/hdf5.SlackBuild
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2010-05-13 00:29:50 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:29:50 +0200
commit8eb0bf8845bd70d5b6217cbdcf0b3c6f17917109 (patch)
tree1d75b2bd377a3168427d6d56d93edfabb0a34e2d /libraries/hdf5/hdf5.SlackBuild
parent8ea3820f1ecc286efe05444b54cdf6abea00a0c9 (diff)
libraries/hdf5: Updated for version 1.8.4
Diffstat (limited to 'libraries/hdf5/hdf5.SlackBuild')
-rw-r--r--libraries/hdf5/hdf5.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/libraries/hdf5/hdf5.SlackBuild b/libraries/hdf5/hdf5.SlackBuild
index 0a2dc6314dfc5..f9faa45b9e6b8 100644
--- a/libraries/hdf5/hdf5.SlackBuild
+++ b/libraries/hdf5/hdf5.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hdf5
-VERSION=${VERSION:-1.8.3}
+VERSION=${VERSION:-1.8.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -44,16 +44,15 @@ elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
fi
-DOCFILES="COPYING MANIFEST README.txt release_docs/RELEASE.txt \
- release_docs/HISTORY-1_8.txt"
+DOCFILES="COPYING MANIFEST README.txt release_docs/RELEASE.txt release_docs/HISTORY-1_8.txt"
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -82,7 +81,7 @@ install -m 0644 $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Remove unnecessary stuff
-rm -f $PKG/usr/lib/*.settings
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.settings
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -91,4 +90,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}