abuild (380B)
1 name=ninja 2 version=1.13.0 3 release=1 4 source="https://github.com/$name-build/$name/archive/v$version/$name-$version.tar.gz" 5 6 build() { 7 sed -i '/int Guess/a \ 8 int j = 0;\ 9 char* jobs = getenv( "NINJAJOBS" );\ 10 if ( jobs != NULL ) j = atoi( jobs );\ 11 if ( j > 0 ) return j;\ 12 ' src/ninja.cc 13 14 python3 ./configure.py --bootstrap 15 install -Dm755 ninja $PKG/usr/bin/ninja 16 }