]> git.pld-linux.org Git - packages/kicad.git/blob - appstream.patch
- started update to 4.0.6 based on fedora
[packages/kicad.git] / appstream.patch
1 From fd329bac32dbf4038d458a8f019ebbb42e8faf48 Mon Sep 17 00:00:00 2001
2 From: Lubomir Rintel <lkundrak@v3.sk>
3 Date: Wed, 20 Apr 2016 16:54:08 +0200
4 Subject: [PATCH] Add AppStream metadata
5
6 This will ensure KiCad will be easily installable from the app stores such as
7 GNOME Software.
8
9 The screenshots probably need a better home. Not that it would matter
10 too much -- the Linux distributions do cache them with their feeds, so
11 the app store applications don't access them from this source directly.
12
13 Screenshots from the web [1] can't be used since they are too large for use
14 in the app store application. :(
15
16 [1] http://kicad-pcb.org/discover/screenshots/
17 ---
18  CMakeLists.txt                            |  7 +++++
19  resources/linux/appdata/kicad.appdata.xml | 49 +++++++++++++++++++++++++++++++
20  2 files changed, 56 insertions(+)
21  create mode 100644 resources/linux/appdata/kicad.appdata.xml
22
23 diff --git a/CMakeLists.txt b/CMakeLists.txt
24 index 456f5e3..6c5eaa1 100644
25 --- a/CMakeLists.txt
26 +++ b/CMakeLists.txt
27 @@ -860,6 +860,7 @@ if( UNIX AND NOT APPLE )
28      set( UNIX_MIME_FILES ${UNIX_MIME_DIR}/mime )
29      set( UNIX_ICON_FILES ${UNIX_MIME_DIR}/icons )
30      set( UNIX_APPLICATIONS_FILES ${UNIX_MIME_DIR}/applications )
31 +    set( UNIX_APPDATA_FILES resources/linux/appdata )
32  
33      # Install Mimelnk directory
34      install( DIRECTORY ${UNIX_MIMELNK_FILES}
35 @@ -884,6 +885,12 @@ if( UNIX AND NOT APPLE )
36          DESTINATION ${CMAKE_INSTALL_PREFIX}/share
37          COMPONENT resources
38          )
39 +
40 +    # Install AppStream directory (app store entry)
41 +    install( DIRECTORY ${UNIX_APPDATA_FILES}
42 +        DESTINATION ${CMAKE_INSTALL_PREFIX}/share
43 +        COMPONENT resources
44 +        )
45  endif()
46  
47  #include( CTest )
48 diff --git a/resources/linux/appdata/kicad.appdata.xml b/resources/linux/appdata/kicad.appdata.xml
49 new file mode 100644
50 index 0000000..4452714
51 --- /dev/null
52 +++ b/resources/linux/appdata/kicad.appdata.xml
53 @@ -0,0 +1,49 @@
54 +<?xml version="1.0" encoding="UTF-8"?>
55 +<!-- Copyright Lubomir Rintel 2016 -->
56 +<component type="desktop">
57 +  <id>kicad.desktop</id>
58 +  <name>KiCad</name>
59 +  <project_license>GPL-2.0+</project_license>
60 +  <metadata_license>CC0-1.0</metadata_license>
61 +  <summary>EDA Suite</summary>
62 +
63 +  <keywords>
64 +    <keyword>KiCad</keyword>
65 +    <keyword>EDA</keyword>
66 +    <keyword>PCB</keyword>
67 +    <keyword>Schema</keyword>
68 +    <keyword>PcbNew</keyword>
69 +    <keyword>Eeschema</keyword>
70 +  </keywords>
71 +
72 +  <description>
73 +    <p>A Cross Platform and Open Source Electronics Design Automation Suite.</p>
74 +    <p>The programs handle Schematic Capture, and PCB Layout with Gerber output.</p>
75 +  </description>
76 +
77 +  <screenshots>
78 +    <screenshot type="default">
79 +      <image width="800" height="450">https://raw.githubusercontent.com/lkundrak/kicad-source-mirror/master/resources/linux/screenshots/kicad.png</image>
80 +    </screenshot>
81 +
82 +    <screenshot type="default">
83 +      <caption>Eeschema Schematic Editor</caption>
84 +      <image width="800" height="450">https://raw.githubusercontent.com/lkundrak/kicad-source-mirror/master/resources/linux/screenshots/kicad-schema.png</image>
85 +    </screenshot>
86 +
87 +    <screenshot type="default">
88 +      <caption>PcbNew PCB Layout</caption>
89 +      <image width="800" height="450">https://raw.githubusercontent.com/lkundrak/kicad-source-mirror/master/resources/linux/screenshots/kicad-pcbnew.png</image>
90 +    </screenshot>
91 +
92 +    <screenshot type="default">
93 +      <caption>PcbNew 3D Viewer</caption>
94 +      <image width="800" height="450">https://raw.githubusercontent.com/lkundrak/kicad-source-mirror/master/resources/linux/screenshots/kicad-3d.png</image>
95 +    </screenshot>
96 +  </screenshots>
97 +
98 +  <url type="homepage">http://kicad-pcb.org/</url>
99 +  <url type="bugtracker">http://kicad-pcb.org/help/report-a-bug/</url>
100 +  <update_contact>kicad-developers@lists.launchpad.net</update_contact>
101 +  <developer_name>The KiCad Developers</developer_name>
102 +</component>
103 -- 
104 2.5.5
105
This page took 0.085417 seconds and 3 git commands to generate.