1#!/usr/local/bin/python3.8 2 3from os import environ, path 4from subprocess import call 5 6prefix = environ.get('MESON_INSTALL_PREFIX', '/usr/local') 7datadir = path.join(prefix, 'share') 8destdir = environ.get('DESTDIR', '') 9 10if not destdir: 11 print('Updating icon cache...') 12 call(['gtk-update-icon-cache', '-qtf', path.join(datadir, 'icons', 'hicolor')]) 13 print("Installing new Schemas") 14 call(['glib-compile-schemas', path.join(datadir, 'glib-2.0/schemas')]) 15