From 862711b71a78b140ee2987eeccb44a29a4f2a14f Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 20 Apr 2016 16:54:08 +0200 Subject: [PATCH] Add AppStream metadata This will ensure KiCad will be easily installable from the app stores such as GNOME Software. The screenshots probably need a better home. Not that it would matter too much -- the Linux distributions do cache them with their feeds, so the app store applications don't access them from this source directly. Screenshots from the web [1] can't be used since they are too large for use in the app store application. :( [1] http://kicad-pcb.org/discover/screenshots/ Fixes lp:1323789 https://bugs.launchpad.net/kicad/+bug/1323789 --- CMakeLists.txt | 7 ++++ resources/linux/appdata/kicad.appdata.xml | 50 +++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 resources/linux/appdata/kicad.appdata.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fec4a2850..5822c446f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -795,6 +795,7 @@ if( UNIX AND NOT APPLE ) set( UNIX_MIME_FILES ${UNIX_MIME_DIR}/mime ) set( UNIX_ICON_FILES ${UNIX_MIME_DIR}/icons ) set( UNIX_APPLICATIONS_FILES ${UNIX_MIME_DIR}/applications ) + set( UNIX_APPDATA_FILES resources/linux/appdata ) # Install Mime directory install( DIRECTORY ${UNIX_ICON_FILES} @@ -813,6 +814,12 @@ if( UNIX AND NOT APPLE ) DESTINATION ${CMAKE_INSTALL_PREFIX}/share COMPONENT resources ) + + # Install AppStream directory (app store entry) + install( DIRECTORY ${UNIX_APPDATA_FILES} + DESTINATION ${CMAKE_INSTALL_PREFIX}/share + COMPONENT resources + ) endif() #include( CTest ) diff --git a/resources/linux/appdata/kicad.appdata.xml b/resources/linux/appdata/kicad.appdata.xml new file mode 100644 index 0000000000..8f7886358f --- /dev/null +++ b/resources/linux/appdata/kicad.appdata.xml @@ -0,0 +1,50 @@ + + + + + kicad.desktop + KiCad + GPL-2.0+ + CC0-1.0 + EDA Suite + + + KiCad + EDA + PCB + Schema + PcbNew + Eeschema + + + +

A Cross Platform and Open Source Electronics Design Automation Suite.

+

The programs handle Schematic Capture, and PCB Layout with Gerber output.

+
+ + + + http://kicad-pcb.org/img/screenshots/appstream/kicad.png + + + + Eeschema Schematic Editor + http://kicad-pcb.org/img/screenshots/appstream/eeschema.png + + + + PcbNew PCB Layout + http://kicad-pcb.org/img/screenshots/appstream/pcbnew.png + + + + PcbNew 3D Viewer + http://kicad-pcb.org/img/screenshots/appstream/3dviewer.png + + + + http://kicad-pcb.org/ + http://kicad-pcb.org/help/report-a-bug/ + kicad-developers@lists.launchpad.net + The KiCad Developers +