Ninja is a small build system with a focus on speed.
Download HTTP: https://github.com/ninja-build/ninja/archive/v1.13.2/ninja-1.13.2.tar.gz
Download SHA256 Sum: 974d6b2f4eeefa25625d34da3cb36bdcebe7fbce40f4c16ac0835fd1c0cbae17
Download Size: 286 KB
Estimated Disk Space: 8.5M
Estimated Build Time: less than 0.5 SBU
Cmake-4.3.2, Binutils-2.46.0-pass2, Coreutils-9.10, GCC-15.2.0-pass2 Python-3.14.4
Prepare Ninja for compilation:
export NINJAJOBS=4
If desired, make ninja recognize the environment variable NINJAJOBS by running the stream editor:
sed -i '/int Guess/a \ int j = 0;\ char* jobs = getenv( "NINJAJOBS" );\ if ( jobs != NULL ) j = atoi( jobs );\ if ( j > 0 ) return j;\ ' src/ninja.cc
Now Configure the Package, issue:
cmake -B build -DBUILD_TESTING=OFF -DNINJA_BUILD_BINARY=ON
To Compile the Package, issue:
cmake --build build
Now Install the Package, issue:
install -vm755 build/ninja /usr/bin/ install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja install -vDm644 misc/zsh-completion /usr/share/zsh/site-functions/_ninja