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
6 This will ensure KiCad will be easily installable from the app stores such as
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.
13 Screenshots from the web [1] can't be used since they are too large for use
14 in the app store application. :(
16 [1] http://kicad-pcb.org/discover/screenshots/
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
23 diff --git a/CMakeLists.txt b/CMakeLists.txt
24 index 456f5e3..6c5eaa1 100644
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 )
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
40 + # Install AppStream directory (app store entry)
41 + install( DIRECTORY ${UNIX_APPDATA_FILES}
42 + DESTINATION ${CMAKE_INSTALL_PREFIX}/share
48 diff --git a/resources/linux/appdata/kicad.appdata.xml b/resources/linux/appdata/kicad.appdata.xml
50 index 0000000..4452714
52 +++ b/resources/linux/appdata/kicad.appdata.xml
54 +<?xml version="1.0" encoding="UTF-8"?>
55 +<!-- Copyright Lubomir Rintel 2016 -->
56 +<component type="desktop">
57 + <id>kicad.desktop</id>
59 + <project_license>GPL-2.0+</project_license>
60 + <metadata_license>CC0-1.0</metadata_license>
61 + <summary>EDA Suite</summary>
64 + <keyword>KiCad</keyword>
65 + <keyword>EDA</keyword>
66 + <keyword>PCB</keyword>
67 + <keyword>Schema</keyword>
68 + <keyword>PcbNew</keyword>
69 + <keyword>Eeschema</keyword>
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>
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>
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>
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>
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>
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>