Install AppStream data as .metainfo.xml

Following advice from https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
This commit is contained in:
Alexey Sokolov 2020-05-01 20:38:00 +01:00
parent a87cc8a0e6
commit 39fb5fb958
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class BuildData(build):
[file_data.write(line.lstrip('_')) for line in file_in] [file_data.write(line.lstrip('_')) for line in file_in]
appdata_in='data/terminator.appdata.xml.in' appdata_in='data/terminator.appdata.xml.in'
appdata_data='data/terminator.appdata.xml' appdata_data='data/terminator.metainfo.xml'
rc = os.system ("C_ALL=C " + INTLTOOL_MERGE + " -x -u -c " + TOP_BUILDDIR + rc = os.system ("C_ALL=C " + INTLTOOL_MERGE + " -x -u -c " + TOP_BUILDDIR +
"/po/.intltool-merge-cache " + TOP_BUILDDIR + "/po " + "/po/.intltool-merge-cache " + TOP_BUILDDIR + "/po " +
appdata_in + " " + appdata_data) appdata_in + " " + appdata_data)
@ -206,8 +206,8 @@ setup(name=APP_NAME,
license='GNU GPL v2', license='GNU GPL v2',
scripts=['terminator', 'remotinator'], scripts=['terminator', 'remotinator'],
data_files=[ data_files=[
('share/appdata', ['data/terminator.appdata.xml']),
('share/applications', ['data/terminator.desktop']), ('share/applications', ['data/terminator.desktop']),
('share/metainfo', ['data/terminator.metainfo.xml']),
(os.path.join(man_dir, 'man1'), ['doc/terminator.1']), (os.path.join(man_dir, 'man1'), ['doc/terminator.1']),
(os.path.join(man_dir, 'man5'), ['doc/terminator_config.5']), (os.path.join(man_dir, 'man5'), ['doc/terminator_config.5']),
('share/pixmaps', ['data/icons/hicolor/48x48/apps/terminator.png']), ('share/pixmaps', ['data/icons/hicolor/48x48/apps/terminator.png']),