aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/ninja/abuild
blob: bd38c3b833dce59aed30400a8f1fd85c7acc542a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
name=ninja
version=1.12.1
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
}