diff options
Diffstat (limited to 'academic/dakota/dakota.SlackBuild')
-rw-r--r-- | academic/dakota/dakota.SlackBuild | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/academic/dakota/dakota.SlackBuild b/academic/dakota/dakota.SlackBuild index 7a043c21766be..2e907ef4f2652 100644 --- a/academic/dakota/dakota.SlackBuild +++ b/academic/dakota/dakota.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Dakota -# Copyright 2017, 2018, 2019, 2020, 2021, 2022, 2023 Lorenzo Trevisan, Caorle, Venice, Italy +# Copyright 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Lorenzo Trevisan, Caorle, Venice, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dakota -VERSION=${VERSION:-6.17.0} +VERSION=${VERSION:-6.19.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -69,9 +69,8 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION-release-public-src-cli -tar xvf $CWD/$PRGNAM-$VERSION-release-public-src-cli.tar.gz -cd $PRGNAM-$VERSION-release-public-src-cli +rm -rf $PRGNAM-$VERSION-public-src-cli +tar xvf $CWD/$PRGNAM-$VERSION-public-src-cli.tar.gz chown -R root:root . find -L . \ @@ -80,6 +79,10 @@ 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 {} \; +cd $PRGNAM-$VERSION-public-src-cli + +sed -i -e '11 a #include <math.h>' ./src/unit/dakota_tolerance_intervals/test_tolerance_intervals.cpp + mkdir -p build cd build cmake \ @@ -99,8 +102,8 @@ install -D -m755 $CWD/$PRGNAM.csh $PKG/etc/profile.d/$PRGNAM.csh.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYRIGHT LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION -tar xvf $CWD/html-dev-${VERSION}-release.tar.gz -C $PKG/usr/doc/$PRGNAM-$VERSION -tar xvf $CWD/user-html-${VERSION}-release.tar.gz -C $PKG/usr/doc/$PRGNAM-$VERSION +tar xvf $CWD/html-dev-${VERSION}.tar.gz -C $PKG/usr/doc/$PRGNAM-$VERSION +tar xvf $CWD/user-html-${VERSION}.tar.gz -C $PKG/usr/doc/$PRGNAM-$VERSION chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION chmod 755 $(find $PKG/usr/doc/$PRGNAM-$VERSION -type d) cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |