mupdf: Add custom desktop file for Jlime.
authorAlex Ferguson <thoughtmonster@gmail.com>
Sat, 30 Oct 2010 18:42:42 +0000 (21:42 +0300)
committerKristoffer Ericson <kristoffer.ericson@gmail.com>
Wed, 3 Nov 2010 15:51:54 +0000 (16:51 +0100)
* Added mupdf.desktop

* Modified mupdf-0.6 recipe for mupdf.desktop.

Signed-off-by: Alex Ferguson <thoughtmonster@gmail.com>
Signed-off-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
recipes/mupdf/files/mupdf.desktop [new file with mode: 0644]
recipes/mupdf/mupdf_0.6.bb

diff --git a/recipes/mupdf/files/mupdf.desktop b/recipes/mupdf/files/mupdf.desktop
new file mode 100644 (file)
index 0000000..60667e2
--- /dev/null
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=MuPDF
+GenericName=PDF File Viewer
+Comment=PDF File Viewer
+Exec=mupdf-loader
+Icon=mupdf.png
+Terminal=false
+Type=Application
+MimeType=application/pdf;pplication/x-pdf;
+Categories=Viewer;Graphics;
index 88e7868..31d4ed2 100644 (file)
@@ -10,7 +10,7 @@ SRC_URI = "http://mupdf.com/download/source/${PN}-${PV}.tar.gz \
            file://mupdf_fix_endianness.patch \
            file://Makerules"
 
-SRC_URI_append_jlime = " file://keybindings.patch "
+SRC_URI_append_jlime = " file://keybindings.patch file://mupdf.desktop "
 
 S = "${WORKDIR}/mupdf"
 
@@ -36,6 +36,10 @@ do_configure() {
     echo "CFLAGS += -DNOCJK" >> ${S}/Makerules
 }
 
+do_configure_append_jlime() {
+    mv ${WORKDIR}/mupdf.desktop ${S}/debian/
+}
+
 do_compile() {
     # mupdf uses couple of tools for code generation during build process
     # so we need to compile them first with host compiler