A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

meson: Use MESON_INSTALL_DESTDIR_PREFIX to respect DESTDIR

Also use meson.add_install_script() instead of custom_target() to install CSSs.

Fixes https://github.com/nana-4/materia-theme/issues/493

by roundabout, Wednesday, 22 April 2020, 10:18:32 (1587550712), pushed by roundabout, Sunday, 11 May 2025, 13:22:53 (1746969773)

Author identity: nana-4 <hnmaigo@gmail.com>

b36b379c9256b67e5f63a60c6faf6912f1845b66

src/cinnamon/meson.build

@@ -45,21 +45,21 @@ foreach theme: themes

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                meson.current_source_dir(),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              )
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          # Generate and install CSS file
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          custom_target(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          # Generate CSS file
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          cinnamon_css = custom_target(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                'cinnamon.@0@.css'.format(theme['name']),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                input: 'cinnamon.@0@.scss'.format(theme['name']),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                output: 'cinnamon.@0@.css'.format(theme['name']),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                command: [sassc, sassc_opts, '@INPUT@', '@OUTPUT@'],
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                depend_files: cinnamon_scss_depend_files,
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            install: true,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            install_dir: cinnamon_dir,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            build_by_default: true,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              )
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          # Rename it to a valid name
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          # Install it while renaming to a valid name
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              meson.add_install_script(
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            'mv',
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            join_paths(get_option('prefix'), cinnamon_dir, 'cinnamon.@0@.css'.format(theme['name'])),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            join_paths(get_option('prefix'), cinnamon_dir, 'cinnamon.css'),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            'sh', '-c', 'cp "@0@" "@1@"'.format(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              cinnamon_css.full_path(),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              join_paths('$MESON_INSTALL_DESTDIR_PREFIX', cinnamon_dir, 'cinnamon.css'),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            ),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              )
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            endforeach
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gnome-shell/meson.build

@@ -121,21 +121,21 @@ foreach theme: themes

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                meson.current_source_dir(),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              )
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          # Generate and install CSS file
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          custom_target(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          # Generate CSS file
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gnome_shell_css = custom_target(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                'gnome-shell.@0@.css'.format(theme['name']),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                input: 'gnome-shell.@0@.scss'.format(theme['name']),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                output: 'gnome-shell.@0@.css'.format(theme['name']),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                command: [sassc, sassc_opts, '@INPUT@', '@OUTPUT@'],
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                depend_files: gnome_shell_scss_depend_files,
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            install: true,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            install_dir: gnome_shell_dir,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            build_by_default: true,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              )
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          # Rename it to a valid name
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          # Install it while renaming to a valid name
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              meson.add_install_script(
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            'mv',
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            join_paths(get_option('prefix'), gnome_shell_dir, 'gnome-shell.@0@.css'.format(theme['name'])),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            join_paths(get_option('prefix'), gnome_shell_dir, 'gnome-shell.css'),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            'sh', '-c', 'cp "@0@" "@1@"'.format(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              gnome_shell_css.full_path(),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              join_paths('$MESON_INSTALL_DESTDIR_PREFIX', gnome_shell_dir, 'gnome-shell.css'),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            ),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              )
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            endforeach
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk/meson.build

@@ -69,22 +69,22 @@ foreach theme: themes

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    meson.current_source_dir(),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  )
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              # Generate and install CSS file
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              custom_target(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              # Generate CSS file
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              gtk_css = custom_target(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    '@0@.css'.format(gtk_temp_name),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    input: '@0@.scss'.format(gtk_temp_name),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    output: '@0@.css'.format(gtk_temp_name),
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    command: [sassc, sassc_opts, '@INPUT@', '@OUTPUT@'],
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    depend_files: gtk_scss_depend_files,
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                install: true,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                install_dir: gtk_version_dir,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                build_by_default: true,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  )
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              # Rename it to a valid name
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              # Install it while renaming to a valid name
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  meson.add_install_script(
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                'mv',
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                join_paths(get_option('prefix'), gtk_version_dir, '@0@.css'.format(gtk_temp_name)),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                join_paths(get_option('prefix'), gtk_version_dir, 'gtk@0@.css'.format(gtk_variant)),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                'sh', '-c', 'cp "@0@" "@1@"'.format(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                  gtk_css.full_path(),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                  join_paths('$MESON_INSTALL_DESTDIR_PREFIX', gtk_version_dir, 'gtk@0@.css'.format(gtk_variant)),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                ),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  )
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                endforeach
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              endforeach