summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorFellype do Nascimento <fellype (at) gmail (dot) com>2022-04-30 10:16:47 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-30 13:52:13 +0700
commit111b6944fba5c3373b2857bd022da557970a3abf (patch)
treebb6facfc4468a9e7c2405df8c4a1640016ad1ac9 /academic
parent6231f0007f9fca369e99effec3363c9224797210 (diff)
downloadslackbuilds-111b6944fba5c3373b2857bd022da557970a3abf.tar.gz
academic/gmsh: Updated for version 4.10.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/gmsh/doinst.sh20
-rw-r--r--academic/gmsh/gmsh.SlackBuild10
-rw-r--r--academic/gmsh/gmsh.desktop3
-rw-r--r--academic/gmsh/gmsh.info6
4 files changed, 32 insertions, 7 deletions
diff --git a/academic/gmsh/doinst.sh b/academic/gmsh/doinst.sh
new file mode 100644
index 0000000000..8a5ffa8af5
--- /dev/null
+++ b/academic/gmsh/doinst.sh
@@ -0,0 +1,20 @@
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
+if [ -e usr/share/glib-2.0/schemas ]; then
+ if [ -x /usr/bin/glib-compile-schemas ]; then
+ /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
+ fi
+fi
diff --git a/academic/gmsh/gmsh.SlackBuild b/academic/gmsh/gmsh.SlackBuild
index 029fada39a..9d959c11a6 100644
--- a/academic/gmsh/gmsh.SlackBuild
+++ b/academic/gmsh/gmsh.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gmsh
-VERSION=${VERSION:-4.9.2}
+VERSION=${VERSION:-4.10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -95,6 +95,7 @@ if [ "${BUILDSTATICLIB:-no}" = "yes" ]; then
-DENABLE_BUILD_LIB=1 \
-DENABLE_PRIVATE_API=1 \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_INSTALL_DOCDIR:PATH=/usr/share/gmsh \
..
make lib
make install/fast DESTDIR=$PKG/
@@ -109,10 +110,11 @@ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DENABLE_BLAS_LAPACK=1 \
-DENABLE_BUILD_SHARED=1 \
+ -DENABLE_PRIVATE_API=1 \
-DENABLE_PETSC=OFF \
-DENABLE_SLEPC=OFF \
..
-# only demos/ and tutorial/ folders will be leaved in the /usr/share/gmsh dir
+# only demos/ and tutorial/ folders will be left in the /usr/share/gmsh dir
make
make install DESTDIR=$PKG
@@ -139,8 +141,12 @@ cp -a CHANGELOG.txt CREDITS.txt LICENSE.txt README.txt $PKG/usr/doc/$PRGNAM-$VER
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm $PKG/usr/share/gmsh/*.txt
+# Remove onelab.py launcher from /usr/bin, since we are not using it here
+rm $PKG/usr/bin/onelab.py
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/academic/gmsh/gmsh.desktop b/academic/gmsh/gmsh.desktop
index ad08eb309c..16f09b07af 100644
--- a/academic/gmsh/gmsh.desktop
+++ b/academic/gmsh/gmsh.desktop
@@ -4,7 +4,6 @@ Name=Gmsh
Comment=Automatic 3D finite element mesh generator
Icon=gmsh
Exec=gmsh
-Encoding=UTF-8
Terminal=false
Type=Application
-Categories=Education;Science;Math;
+Categories=Science;
diff --git a/academic/gmsh/gmsh.info b/academic/gmsh/gmsh.info
index 9ff8693389..914fc10f95 100644
--- a/academic/gmsh/gmsh.info
+++ b/academic/gmsh/gmsh.info
@@ -1,8 +1,8 @@
PRGNAM="gmsh"
-VERSION="4.9.2"
+VERSION="4.10.0"
HOMEPAGE="http://gmsh.info/"
-DOWNLOAD="http://gmsh.info/src/gmsh-4.9.2-source.tgz"
-MD5SUM="be2fe474662d09431b5abf43a4e1c41b"
+DOWNLOAD="http://gmsh.info/src/gmsh-4.10.0-source.tgz"
+MD5SUM="a4e6ba03ef305dbb8c6b698862ea17c6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fltk lapack med OpenCASCADE"