Files
piper/data/meson.build
Peter Hutterer 3877b53d2c data: add the appdata.xml file
Can be tested by installing the .xml into /usr/share/metainfo/, then running
gnome-software --prefer-local (after killing any running g-s instance). This
may take a while to refresh and if you have a repo that contains piper it may
still be preferred for some reason.

Piper is under "Utilities", if the search doesn't find it immediately, wait
for a while? Or start searching for "org.freedesktop.Piper".

Technically appdata requires 16:9 screenshots but it seems to work with the
ones we have online for the wiki already (they're a little bit too high for
16:9).

Fixes #236

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-09-06 09:26:35 +02:00

30 lines
1.0 KiB
Meson

gnome = import('gnome')
desktopdir = join_paths(datadir, 'applications')
icondir = join_paths(datadir, 'icons', 'hicolor', 'scalable', 'apps')
metainfodir = join_paths(datadir, 'metainfo')
conf = configuration_data()
conf.set('version', meson.project_version())
conf.set('url', 'https://github.com/libratbag/piper')
conf.set('version_date', version_date)
about_dialog = configure_file(input: 'ui/AboutDialog.ui.in',
output: 'AboutDialog.ui',
configuration: conf)
gnome.compile_resources('piper', 'piper.gresource.xml',
source_dir: '.',
dependencies: [about_dialog],
gresource_bundle: true,
install: true,
install_dir: pkgdatadir)
install_data('org.freedesktop.Piper.desktop', install_dir: desktopdir)
install_data('org.freedesktop.Piper.svg', install_dir: icondir)
appdata = configure_file(input: 'org.freedesktop.Piper.appdata.xml.in',
output: 'org.freedesktop.Piper.appdata.xml',
configuration: conf,
install_dir: metainfodir)