diff --git a/128.svg b/data/icons/128.svg similarity index 100% rename from 128.svg rename to data/icons/128.svg diff --git a/16.svg b/data/icons/16.svg similarity index 100% rename from 16.svg rename to data/icons/16.svg diff --git a/24.svg b/data/icons/24.svg similarity index 100% rename from 24.svg rename to data/icons/24.svg diff --git a/32.svg b/data/icons/32.svg similarity index 100% rename from 32.svg rename to data/icons/32.svg diff --git a/48.svg b/data/icons/48.svg similarity index 100% rename from 48.svg rename to data/icons/48.svg diff --git a/64.svg b/data/icons/64.svg similarity index 100% rename from 64.svg rename to data/icons/64.svg diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 0000000..f20ee4f --- /dev/null +++ b/data/meson.build @@ -0,0 +1,14 @@ +icon_sizes = ['16', '24', '32', '48', '64', '128'] + +foreach i : icon_sizes + install_data( + join_paths('icons', i + '.svg'), + install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps'), + rename: meson.project_name() + '.svg' + ) + install_data( + join_paths('icons', i + '.svg'), + install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i + '@2', 'apps'), + rename: meson.project_name() + '.svg' + ) +endforeach diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..d1b39cf --- /dev/null +++ b/meson.build @@ -0,0 +1,3 @@ +project('org.gnome.Evince') + +subdir('data') diff --git a/org.gnome.evince.json b/org.gnome.evince.json index b4f9239..2d78046 100644 --- a/org.gnome.evince.json +++ b/org.gnome.evince.json @@ -179,7 +179,18 @@ "type": "patch", "path": "dark-style.patch" } + ], + "cleanup": [ + "org.gnome.Evince.svg" ] + }, + { + "name": "customizations", + "buildsystem": "meson", + "sources": [{ + "type": "dir", + "path": "." + }] } ] }