summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/med/med.SlackBuild9
-rw-r--r--libraries/med/med.info10
2 files changed, 9 insertions, 10 deletions
diff --git a/libraries/med/med.SlackBuild b/libraries/med/med.SlackBuild
index 9256b4e3b0..2620575135 100644
--- a/libraries/med/med.SlackBuild
+++ b/libraries/med/med.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=med
-VERSION=${VERSION:-3.2.1}
+VERSION=${VERSION:-4.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,16 +54,14 @@ else
LIBDIRSUFFIX=""
fi
-SRCVERSION=$(echo $VERSION'_SRC')
-
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVERSION
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$SRCVERSION
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -71,6 +69,7 @@ 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 {} \;
+PYTHON_VERSION=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
diff --git a/libraries/med/med.info b/libraries/med/med.info
index b35c93daa5..f9551cd268 100644
--- a/libraries/med/med.info
+++ b/libraries/med/med.info
@@ -1,10 +1,10 @@
PRGNAM="med"
-VERSION="3.2.1"
+VERSION="4.0.0"
HOMEPAGE="https://www.code-aster.org"
-DOWNLOAD="http://files.salome-platform.org/Salome/other/med-3.2.1.tar.gz"
-MD5SUM="4965899bb578229ba27c9bc5293c651e"
+DOWNLOAD="http://files.salome-platform.org/Salome/other/med-4.0.0.tar.gz"
+MD5SUM="ef903d0dc165fc72818ab264ebb6e8ba"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="hdf5"
+REQUIRES="hdf5 python3"
MAINTAINER="blizzack"
-EMAIL="slackbuilds@blizzack.com" \ No newline at end of file
+EMAIL="slackbuilds@blizzack.com"