diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-09-09 01:03:35 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-09-09 01:03:35 +0800 |
| commit | d1304e447af44d2a455125866b9ffd838909416a (patch) | |
| tree | 63975ddf3df60ab157d73b372d21478e112eab32 /repos/archive/ninja/abuild | |
| parent | 2d6badaa615d7f1aaf807ac469d8a38fe2d16670 (diff) | |
| download | alicelinux-d1304e447af44d2a455125866b9ffd838909416a.tar.gz alicelinux-d1304e447af44d2a455125866b9ffd838909416a.zip | |
archived
Diffstat (limited to 'repos/archive/ninja/abuild')
| -rw-r--r-- | repos/archive/ninja/abuild | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/repos/archive/ninja/abuild b/repos/archive/ninja/abuild new file mode 100644 index 00000000..d5b0febf --- /dev/null +++ b/repos/archive/ninja/abuild @@ -0,0 +1,16 @@ +name=ninja +version=1.13.0 +release=1 +source="https://github.com/$name-build/$name/archive/v$version/$name-$version.tar.gz" + +build() { + 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 + + python3 ./configure.py --bootstrap + install -Dm755 ninja $PKG/usr/bin/ninja +} |