From 1e2ccef73c5ca96f7884a452b65cdbbff51c43ca Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:01:24 +0200 Subject: Adding upstream version 3.38.0. Signed-off-by: Daniel Baumann --- meson_post_install.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 meson_post_install.py (limited to 'meson_post_install.py') diff --git a/meson_post_install.py b/meson_post_install.py new file mode 100644 index 0000000..2ab6b22 --- /dev/null +++ b/meson_post_install.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 + +import os +import subprocess + +install_prefix = os.environ['MESON_INSTALL_PREFIX'] +icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor') +schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas') + +if not os.environ.get('DESTDIR'): + print('Update icon cache...') + subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir]) + + print('Compiling gsettings schemas...') + subprocess.call(['glib-compile-schemas', schemadir]) + + -- cgit v1.2.3