academic/molequeue: Updated for version 0.9.0.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Giancarlo Dessì 2022-04-21 23:51:27 +01:00 committed by Willy Sudiarto Raharjo
parent b27ce2633a
commit 15c596ee45
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 51 additions and 1 deletions

View file

@ -8,3 +8,13 @@ facilitate the execution of the program. Input files can be staged,
and output files collected using a standard interface. and output files collected using a standard interface.
It is a subproject of OpenChemistry needed by Avogadro 2. It is a subproject of OpenChemistry needed by Avogadro 2.
By default MoleQueue should be started as a resident service and
launched from a script or a shell command line. If you want to lauch
the Graphic Interface User using a desktop entry pass the variable
DESKTOP=yes to the slackbuild script:
DESKTOP=yes ./molequeue.SlackBuild
This may be useful if you want to launch the service only when you
are going to start Avogadro 2.

View file

@ -0,0 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/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

View file

@ -84,6 +84,7 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTING=OFF \ -DENABLE_TESTING=OFF \
-Wno-dev \
.. ..
make make
make install/strip DESTDIR=$PKG make install/strip DESTDIR=$PKG
@ -94,11 +95,41 @@ rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Remove redundant files installed by make install in /usr/share/doc/Molequeue
rm -rf $PKG/usr/share/doc
mkdir -p $PKG/install
if [ "${DESKTOP:-no}" = "yes" ]; then
#Copy application icon and create a desktop entry
mkdir -p $PKG/usr/share/icons/hicolor/32x32/apps
cp -a $TMP/$PRGNAM-$VERSION/molequeue/app/icons/molequeue.png \
$PKG/usr/share/icons/hicolor/32x32/apps
mkdir -p $PKG/usr/share/applications
cat << EOF > $PKG/usr/share/applications/molequeue.desktop
[Desktop Entry]
Type=Application
Name=MoleQueue
GenericName=MoleQueue Server for Avogadro 2
Comment=Desktop integration of high performance computing resources.
Exec=molequeue
Icon=/usr/share/icons/hicolor/32x32/apps/molequeue.png
Terminal=false
Categories=Qt;Science;Chemistry;Physics;Education;
X-KDE-StartupNotify=false
StartupNotify=false
EOF
cat $CWD/doinst.sh > $PKG/install/doinst.sh
else
rm -rf $PKG/usr/share
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cp -a *.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG