File: meson_post_install.py

package info (click to toggle)
gnome-shell-extension-mediaplayer 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 676 kB
  • sloc: xml: 118; sh: 46; python: 27; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3

from os import environ, path
from subprocess import call

HOME = path.join(path.expanduser('~'), '.local/')
PREFIX = environ.get('MESON_INSTALL_PREFIX', HOME)
DATA_DIR = path.join(PREFIX, 'share')
DEST_DIR = environ.get('DESTDIR', '')
EXTENSION_DIR = path.join(DATA_DIR,
                          "gnome-shell/extensions/mediaplayer@patapon.info")

if not DEST_DIR:
    print("Installing new Schemas")
    call(['glib-compile-schemas', path.join(EXTENSION_DIR, 'schemas/')])