Add patch to create and install appstream metainfo OBS-URL: https://build.opensuse.org/request/show/415345 OBS-URL: https://build.opensuse.org/package/show/Publishing/texmaker?expand=0&rev=77
62 lines
2.1 KiB
Diff
62 lines
2.1 KiB
Diff
Index: texmaker-4.5/utilities/texmaker.appdata.xml
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ texmaker-4.5/utilities/texmaker.appdata.xml
|
|
@@ -0,0 +1,26 @@
|
|
+<?xml version='1.0' encoding='UTF-8'?>
|
|
+<component>
|
|
+ <id type="desktop">texmaker.desktop</id>
|
|
+ <metadata_license>CC0-1.0</metadata_license>
|
|
+ <name>Texmaker LaTeX Editor</name>
|
|
+ <project_license>GPL-2.0 and BSD-3-Clause</project_license>
|
|
+ <summary>Free cross-platform LaTeX editor</summary>
|
|
+ <url type="homepage">http://www.xm1math.net/texmaker/</url>
|
|
+ <description>
|
|
+ <p>Texmaker is a free LaTeX editor, that integrates many tools
|
|
+needed to develop documents with LaTeX, in just one application.
|
|
+Texmaker runs on unix, macosx and windows systems and is released
|
|
+under the GPL license .</p>
|
|
+ </description>
|
|
+ <screenshots>
|
|
+ <screenshot type="default">
|
|
+ <image height="900" width="1600">http://www.xm1math.net/texmaker/texmakertop_big.png</image>
|
|
+ <caption>Source editor and PDF preview side by side</caption>
|
|
+ </screenshot>
|
|
+ <screenshot>
|
|
+ <image height="900" width="1600">http://www.xm1math.net/texmaker/sidebyside_big.png</image>
|
|
+ <caption>Two documents side by side</caption>
|
|
+ </screenshot>
|
|
+ </screenshots>
|
|
+ <update_contact>pbrachet@xm1math.net</update_contact>
|
|
+</component>
|
|
Index: texmaker-4.5/texmaker.pro
|
|
===================================================================
|
|
--- texmaker-4.5.orig/texmaker.pro
|
|
+++ texmaker-4.5/texmaker.pro
|
|
@@ -323,6 +323,9 @@ isEmpty( DESKTOPDIR ) {
|
|
isEmpty( ICONDIR ) {
|
|
ICONDIR=/usr/share/pixmaps
|
|
}
|
|
+isEmpty( METAINFODIR ) {
|
|
+ METAINFODIR=/usr/share/metainfo
|
|
+}
|
|
|
|
DEFINES += PREFIX=\\\"$${PREFIX}\\\"
|
|
|
|
@@ -333,6 +336,7 @@ target.path = $${PREFIX}/bin
|
|
utilities.path = $${PREFIX}/share/texmaker
|
|
desktop.path = $${DESKTOPDIR}
|
|
icon.path = $${ICONDIR}
|
|
+metainfo.path = $${METAINFODIR}
|
|
|
|
INSTALLS = target
|
|
HEADERS += x11fontdialog.h
|
|
@@ -477,4 +481,7 @@ INSTALLS += desktop
|
|
|
|
icon.files = utilities/texmaker.png
|
|
INSTALLS += icon
|
|
+
|
|
+metainfo.files = utilities/texmaker.appdata.xml
|
|
+INSTALLS += metainfo
|
|
}
|