graphics/LDView: Fix .desktop, doinst.sh.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-03-31 14:47:01 -04:00 committed by Willy Sudiarto Raharjo
parent 03394f9f69
commit 1e5aead2fb
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 6 additions and 4 deletions

View File

@ -24,13 +24,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220331 bkw: Modified by SlackBuilds.org: fix .desktop and doinst.
# 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0. # 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0.
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=LDView PRGNAM=LDView
VERSION=${VERSION:-4.4.1} VERSION=${VERSION:-4.4.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=$(echo $PRGNAM|tr '[A-Z]' '[a-z]') SRCNAM=$(echo $PRGNAM|tr '[A-Z]' '[a-z]')
@ -127,6 +128,8 @@ cp LDExporter/LGEO.xml $PKG/usr/share/$SRCNAM/LGEO.xml
mkdir -p $PKG/usr/share/{applications,application-registry,mime/packages,mime-info,pixmaps} mkdir -p $PKG/usr/share/{applications,application-registry,mime/packages,mime-info,pixmaps}
mkdir -p $PKG/usr/share/icons/gnome/32x32/mimetypes mkdir -p $PKG/usr/share/icons/gnome/32x32/mimetypes
cat QT/desktop/ldview.desktop > $PKG/usr/share/applications/ldview.desktop cat QT/desktop/ldview.desktop > $PKG/usr/share/applications/ldview.desktop
# 20220331 bkw: desktop-file-validate
sed -i '/^\(Encoding\|Comment\)/d' $PKG/usr/share/applications/ldview.desktop
cat QT/desktop/ldraw.xml > $PKG/usr/share/mime/packages/ldraw.xml cat QT/desktop/ldraw.xml > $PKG/usr/share/mime/packages/ldraw.xml
cp QT/desktop/ldraw.keys $PKG/usr/share/mime-info/ldraw.keys cp QT/desktop/ldraw.keys $PKG/usr/share/mime-info/ldraw.keys
cp QT/desktop/ldraw.mime $PKG/usr/share/mime-info/ldraw.mime cp QT/desktop/ldraw.mime $PKG/usr/share/mime-info/ldraw.mime

View File

@ -1,7 +1,6 @@
if [ -x /usr/bin/update-desktop-database ]; then if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q /usr/share/applications >/dev/null 2>&1 /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi fi
if [ -x /usr/bin/update-mime-database ]; then if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database /usr/share/mime >/dev/null 2>&1 /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi fi