File: meson_post_install.py

package info (click to toggle)
swell-foop 1%3A3.30.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,060 kB
  • sloc: xml: 106; python: 10; sh: 7; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (3)
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'):
  icon_dir = os.path.join(sys.argv[1], 'icons', 'hicolor')
  schema_dir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas')
  print('Update icon cache...')
  subprocess.call(['gtk-update-icon-cache', '-f', '-t', icon_dir])

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