Add appdata for gtk4-demo
authorMatthias Clasen <mclasen@redhat.com>
Tue, 20 Mar 2018 23:40:30 +0000 (19:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Mar 2018 23:40:30 +0000 (19:40 -0400)
This will let us build a better flatpak for gtk4-demo.

demos/gtk-demo/meson.build
demos/gtk-demo/org.gtk.Demo.appdata.xml [new file with mode: 0644]
meson.build

index 6734d6f1101029366da37f15cb9abe7cd08048c8..1317c29904b1370c612dcdf7964d6770f2ccccb8 100644 (file)
@@ -131,3 +131,6 @@ install_data('gtk4-demo.desktop', install_dir: gtk_applicationsdir)
 # GSettings
 install_data('org.gtk.Demo.gschema.xml', install_dir: gtk_schemasdir)
 gnome.compile_schemas()
+
+# appdata
+install_data('org.gtk.Demo.appdata.xml', install_dir: gtk_appdatadir)
\ No newline at end of file
diff --git a/demos/gtk-demo/org.gtk.Demo.appdata.xml b/demos/gtk-demo/org.gtk.Demo.appdata.xml
new file mode 100644 (file)
index 0000000..65902b7
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+  <id>org.gtk.Demo.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>LGPL-2.0+</project_license>
+  <name>GTK+ Demo</name>
+  <summary>Program to demonstrate GTK+ functions</summary>
+  <description>
+    <p>
+      GTK+ Demo is a collection of examples that demonstrate the major
+      features of the GTK+ toolkit.
+    </p>
+  </description>
+  <screenshots>
+    <screenshot>
+      <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo1.png</image>
+      <caption>The main window</caption>
+    </screenshot>
+    <screenshot>
+      <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo2.png</image>
+      <caption>An example</caption>
+    </screenshot>
+  </screenshots>
+  <kudos>
+    <kudo>AppMenu</kudo>
+    <kudo>HiDpiIcon</kudo>
+    <kudo>ModernToolkit</kudo>
+  </kudos>
+  <url type="homepage">https://www.gtk.org</url>
+  <translation type="gettext">gtk-4.0</translation>
+  <update_contact>matthias.clasen_at_gmail.com</update_contact>
+  <developer_name>Matthias Clasen and others</developer_name>
+</component>
\ No newline at end of file
index c2d0e51338c42a8349782165138ad877ff8315d0..26d522fa3bc88df640c326dc0758e02c31df22bb 100644 (file)
@@ -125,6 +125,7 @@ gtk_localedir = join_paths(gtk_prefix, get_option('localedir'))
 gtk_sysconfdir = join_paths(gtk_prefix, get_option('sysconfdir'))
 gtk_applicationsdir = join_paths(gtk_datadir, 'applications')
 gtk_schemasdir = join_paths(gtk_datadir, 'glib-2.0/schemas')
+gtk_appdatadir = join_paths(gtk_datadir, 'metainfo')
 
 cc = meson.get_compiler('c')