tce-load -i compiletc meson gnome-control-center gnome-settings-daemon-dev evolution-data-server-dev ibus-dev gtk4-dev gnome-autoar-dev appstream-glib networkmanager-dev libsass-dev mutter-dev mutter-gir libsoup-gir networkmanager-gir gettext desktop-file-utils gjs-dev gjs-gir polkit-gir gtk4-gir gcr-gir

wget https://download.gnome.org/sources/gnome-shell/40/gnome-shell-40.9.tar.xz

cd gnome-shell-40.9

mkdir build
cd build

CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" meson --prefix=/usr/local --libexecdir=/usr/local/lib/gnome-shell --localstatedir=/var --buildtype=plain -Dsystemd=false -Dman=false

ninja [0m 45.25s]
sudo ninja install

gnome-shell 40.9

  Directories
    prefix         : /usr/local
    bindir         : bin
    libdir         : lib
    libexecdir     : lib/gnome-shell
    datadir        : share
    sysconfdir     : etc

  Build Configuration
    buildtype      : plain
    debug          : False

  Build Options
    networkmanager : True
    systemd        : False
    extensions_app : True
    extensions_tool: True
    man            : False
    gtk_doc        : False

  Subprojects
    extensions-app : YES 2 warnings
    extensions-tool: YES 2 warnings
    gvc            : YES
    shew           : YES

  User defined options
    buildtype      : plain
    libexecdir     : /usr/local/lib/gnome-shell
    localstatedir  : /var
    prefix         : /usr/local
    man            : false
    systemd        : false
