tce-load -i compiletc curl-dev libarchive-dev jsoncpp-dev expat2-dev ncursesw-dev libuv-dev librhash-dev libnghttp2-dev

wget https://cmake.org/files/v3.31/cmake-3.31.5.tar.gz

cd cmake-3.31.5

sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake

./bootstrap --prefix=/usr/local --system-libs --no-system-cppdap [7m 44.21s]

edit CMakeCache.txt
BUILD_CursesDialog:BOOL=ON
CMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_CXX_FLAGS_RELEASE:STRING=-flto -mtune=generic -Os -pipe -DNDEBUG
CMAKE_C_FLAGS_RELEASE:STRING=-flto -mtune=generic -Os -pipe -DNDEBUG

[fno-exceptions fails]

edit Source/CursesDialog/cmCursesStandardIncludes.h
#include <form.h> -> #include <ncursesw/form.h>

make [25m 22.15]
sudo make install

-- Using system-installed BZIP2
-- Using system-installed CURL
-- Using system-installed EXPAT
-- Using system-installed FORM
-- Using system-installed JSONCPP
-- Using system-installed LIBARCHIVE
-- Using system-installed LIBLZMA
-- Using system-installed LIBRHASH
-- Using system-installed LIBUV
-- Using system-installed NGHTTP2
-- Using system-installed ZLIB
-- Using system-installed ZSTD
