aboutsummaryrefslogtreecommitdiff
path: root/libraries/hdf5/hdf5.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/hdf5/hdf5.SlackBuild')
-rw-r--r--libraries/hdf5/hdf5.SlackBuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/libraries/hdf5/hdf5.SlackBuild b/libraries/hdf5/hdf5.SlackBuild
index 1006d4117dd8..c3b0ceac99d9 100644
--- a/libraries/hdf5/hdf5.SlackBuild
+++ b/libraries/hdf5/hdf5.SlackBuild
@@ -23,16 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hdf5
-VERSION=${VERSION:-1.8.5}
+VERSION=${VERSION:-1.8.5_patch1}
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
@@ -56,18 +54,18 @@ else
LIBDIRSUFFIX=""
fi
-DOCFILES="COPYING README.txt release_docs/RELEASE.txt \
- release_docs/HISTORY-1_8.txt release_docs/HISTORY-1_0-1_8_0_rc3.txt \
- release_docs/INSTALL"
+SRCVERSION=$(echo $VERSION | tr '_' '-')
+DOCFILES="ACKNOWLEDGMENTS COPYING README.txt release_docs/RELEASE.txt \
+ release_docs/HISTORY* release_docs/INSTALL"
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVERSION
+tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.bz2
+cd $PRGNAM-$SRCVERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \