File: meson_post_install.py

package info (click to toggle)
cheese 3.34.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,036 kB
  • sloc: ansic: 6,522; xml: 293; sh: 167; python: 65; makefile: 32
file content (15 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
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]])