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.

feat(install.sh): allow to configure installation options via env vars

by roundabout, Saturday, 26 August 2017, 15:38:06 (1503761886), pushed by roundabout, Sunday, 11 May 2025, 13:22:13 (1746969733)

Author identity: actionless <actionless.loveless@gmail.com>

10a3ac753bb7472681932ec9c84e774d15daf1a9

install.sh

@@ -20,11 +20,30 @@ fi

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            echo
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        for color in '' '-dark' '-light' ; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          for size in '' '-compact' ; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        themedir_base_fallback=${destdir}/usr/share/themes/Flat-Plat
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        themedir_base=${THEME_DIR_BASE:-$themedir_base_fallback}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        _COLOR_VARIANTS=(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	''
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	'-dark'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	'-light'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [ ! -z "${COLOR_VARIANTS:-}" ] ; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	IFS=', ' read -r -a _COLOR_VARIANTS <<< "${COLOR_VARIANTS:-}"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        _SIZE_VARIANTS=(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	''
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	'-compact'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [ ! -z "${SIZE_VARIANTS:-}" ] ; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	IFS=', ' read -r -a _SIZE_VARIANTS <<< "${SIZE_VARIANTS:-}"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        for color in "${_COLOR_VARIANTS[@]}" ; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          for size in "${_SIZE_VARIANTS[@]}" ; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                echo Installing Flat-Plat${color}${size} ...
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            themedir=${destdir}/usr/share/themes/Flat-Plat${color}${size}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            themedir=${themedir_base}${color}${size}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                install -d ${themedir}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                # Copy COPYING