academic/xflr5: Fix slack-desc, add doinst.sh.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2018-03-05 21:13:16 +00:00 committed by Willy Sudiarto Raharjo
parent 696d1fbd7b
commit 65d940ffc7
3 changed files with 11 additions and 1 deletions

9
academic/xflr5/doinst.sh Normal file
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

@ -9,7 +9,7 @@
xflr5: xflr5 (analysis tool for airfoils, wings, and planes)
xflr5:
xflr5: XFLR5 is an analysis tool for airfoils, wings, and planes operating at
xflr5 low Reynolds numbers. It includes:
xflr5: low Reynolds numbers. It includes:
xflr5:
xflr5: 1. XFoil's Direct and Inverse analysis capabilities
xflr5: 2. Wing design and analysis capabilities based on Lifting Line theory,

View file

@ -101,6 +101,7 @@ 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/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}