summaryrefslogtreecommitdiff
path: root/meson_post_install.py
blob: 24242df0b76b4e4b14d6382e4867230260f2efc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3

import os
import subprocess
import sys

if not os.environ.get('DESTDIR'):
    prefix = os.environ['MESON_INSTALL_PREFIX']

    icondir = os.path.join(prefix, sys.argv[1], 'icons', 'hicolor')
    print('Updating icon cache...')
    subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])

    print('Compiling gsettings schemas...')
    subprocess.call(['glib-compile-schemas', sys.argv[2]])