Install correctly devel profile

This commit is contained in:
Alberto Fanjul 2020-07-12 14:35:56 +02:00
parent 179b615abf
commit 8bb3509b31
3 changed files with 9 additions and 8 deletions

View file

@ -1,8 +1,8 @@
[Desktop Entry]
Name=gitg
Name=@binary@
Comment=Git repository browser
Exec=@binary@ --no-wd %U
TryExec=gitg
TryExec=@binary@
Terminal=false
Type=Application
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!

View file

@ -206,9 +206,8 @@ configure_file(
meson.add_install_script(
'meson_post_install.py',
gitg_datadir,
(enable_python ? 'python' : ''),
gitg_libdir,
gitg_name,
gitg_datadir
)
output = '\nConfiguration:\n\n'

View file

@ -7,7 +7,9 @@ import subprocess
import sys
if not os.environ.get('DESTDIR'):
icondir = os.path.join(sys.argv[1], 'icons', 'hicolor')
gitg_name = sys.argv[1]
datadir = sys.argv[2]
icondir = os.path.join(datadir, 'icons', 'hicolor')
name_pattern = re.compile('hicolor_(?:apps)_(?:\d+x\d+|scalable)_(.*)')
search_pattern = '/**/hicolor_*'
@ -18,10 +20,10 @@ if not os.environ.get('DESTDIR'):
print('Update icon cache...')
subprocess.call(['gtk-update-icon-cache', '-f', '-t', '-q', icondir])
icondir = os.path.join(sys.argv[1], 'gitg', 'icons', 'hicolor')
icondir = os.path.join(datadir, gitg_name, 'icons', 'hicolor')
subprocess.call(['gtk-update-icon-cache', '-f', '-t', '-q', icondir])
schemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas')
schemadir = os.path.join(datadir, 'glib-2.0', 'schemas')
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', schemadir])