Browse Source

xap/mupdf: Added custom desktop file.

current-20200608
Damien Goutte-Gattat 3 months ago
parent
commit
1d5d455c46
2 changed files with 16 additions and 1 deletions
  1. +4
    -1
      xap/mupdf/mupdf.SlackBuild
  2. +12
    -0
      xap/mupdf/mupdf.desktop

+ 4
- 1
xap/mupdf/mupdf.SlackBuild View File

@@ -32,7 +32,7 @@ WGET=${WGET:-https://mupdf.com/downloads/archive/$ARCHIVE}

# Build infos
NAMEPKG=${NAMEPKG:-mupdf}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@@ -93,6 +93,9 @@ make install prefix=$PKG/usr \
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;

# Install desktop file
install -D -m 644 $CWD/mupdf.desktop $PKG/usr/share/applications/mupdf.desktop

# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc



+ 12
- 0
xap/mupdf/mupdf.desktop View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Version=1.0
Name=MuPDF
GenericName=MuPDF
Comment=PDF/XPS/CBZ viewer
Type=Application
Categories=Office;Viewer;
Exec=/usr/bin/mupdf-gl %F
Terminal=false
StartupNotify=true
MimeType=application/pdf;application/epub+zip;
Icon=document

Loading…
Cancel
Save