diff --git a/README.md b/README.md index 912f33406..8023b8ddd 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ built for elementary OS. ## Building, Testing, and Installation You'll need the following dependencies: -* meson >= 0.49.0 +* meson >= 0.57.0 * gobject-introspection * libgee-0.8-dev * libgirepository1.0-dev diff --git a/meson.build b/meson.build index e5e5fd425..eb773df6c 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project( 'granite-7', 'vala', 'c', - meson_version: '>= 0.56.0', + meson_version: '>= 0.57.0', version: '7.5.0' ) @@ -52,13 +52,6 @@ libgranite_deps = [ dependency('gtk4', version: '>=4.4'), ] -icons_dir = join_paths( - get_option('prefix'), - get_option('datadir'), - 'icons', - 'hicolor' -) - pkgconfig = import('pkgconfig') gnome = import('gnome') i18n = import('i18n') @@ -75,8 +68,6 @@ if get_option('demo') subdir('demo') endif -# set up post-install script to refresh the GTK icon cache -meson.add_install_script( - join_paths(meson.current_source_dir(), 'meson', 'post_install.py'), - '--iconsdir', icons_dir, +gnome.post_install( + gtk_update_icon_cache: true ) diff --git a/meson/post_install.py b/meson/post_install.py deleted file mode 100755 index 7db7f13fb..000000000 --- a/meson/post_install.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python3 - -import argparse -import os -import subprocess - -parser = argparse.ArgumentParser() -parser.add_argument("--iconsdir", action="store", required=True) -args = vars(parser.parse_args()) - -icons_dir = args["iconsdir"] - -if not os.environ.get('DESTDIR'): - print('Compiling icon cache ...') - subprocess.run(['gtk4-update-icon-cache', icons_dir]) -