File: meson_post_install.py

package info (click to toggle)
tilix 1.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,960 kB
  • sloc: xml: 1,161; sh: 269; python: 119; perl: 72; makefile: 70; ansic: 53
file content (11 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3
from os import environ, path
from subprocess import call

if not environ.get('DESTDIR', ''):
    PREFIX = environ.get('MESON_INSTALL_PREFIX', '/usr/local')
    DATA_DIR = path.join(PREFIX, 'share')
    print('Updating icon cache...')
    call(['gtk-update-icon-cache', '-qtf', path.join(DATA_DIR, 'icons/hicolor')])
    print("compiling new schemas")
    call(["glib-compile-schemas", path.join(DATA_DIR, 'glib-2.0/schemas/')])