The GNOME System Monitor package contains GNOME's replacement for gtop.
This package is known to build and work properly using an LFS 13.0 platform.
Download (HTTP): https://download.gnome.org/sources/gnome-system-monitor/49/gnome-system-monitor-49.1.tar.xz
Download MD5 sum: 2a16034441daa07aa900936475c603db
Download size: 1.1 MB
Estimated disk space required: 24 MB
Estimated build time: 0.1 SBU (with parallelism=4)
adwaita-icon-theme-49.0, Gtkmm-4.20.0, itstool-2.0.7, libgtop-2.41.3, libadwaita-1.8.4, and librsvg-2.61.4
appstream-glib-0.8.3, desktop-file-utils-0.28, Catch2, and uncrustify
First, remove a hard dependency on Catch2, which is only used if you are running the unit tests:
find . -name meson.build | xargs sed -i -e '/catch2/d' && sed -i '145,155d' src/meson.build
Install GNOME System Monitor by running the following commands:
mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja
This package comes with a test suite, but it requires the external Catch2 dependency. If you have Catch2 installed, you can omit the seds above and then run the tests with ninja test.
Now, as the root user:
ninja install