Commit 8bb3509b authored by Alberto Fanjul's avatar Alberto Fanjul

Install correctly devel profile

parent 179b615a
Pipeline #196088 failed with stages
in 32 minutes and 55 seconds
[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)!
......
......@@ -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'
......
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment