summaryrefslogblamecommitdiff
path: root/user/ninja/APKBUILD
blob: 00f71f088a23a6e93b4c87ffa409fe143aa7bf5f (plain) (tree)
1
2
3
4
5
6
7
8
9


                                            
             
        



                                                  
          

                                            
                                                                                         
         

         




                                          




                                                               









                                                                     
                                                                                                                                                                  
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Maintainer: 
pkgname=ninja
pkgver=1.10.1
pkgrel=0
pkgdesc="Small build system with a focus on speed"
url="https://ninja-build.org/"
arch="all"
license="Apache-2.0"
depends=""
makedepends="asciidoctor gtest python3 re2c"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/martine/ninja/archive/v$pkgver.tar.gz
	"

build() {
	python3 ./configure.py --bootstrap
	asciidoctor doc/manual.asciidoc
}

check() {
	./ninja ninja_test
	./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
}

package() {
	install -m755 -D ninja "$pkgdir/usr/bin/ninja"
	install -m644 -D doc/manual.asciidoc \
		"$pkgdir/usr/share/doc/ninja/manual.asciidoc"
	install -m644 -D doc/manual.html \
		"$pkgdir/usr/share/doc/ninja/manual.html"

	install -m644 -D misc/bash-completion \
		"$pkgdir/usr/share/bash-completion/completions/ninja"
}

sha512sums="9915767a6ffc7147903f346082b5c31fcaeb1e45742754cfaaa642e8ec4c1bd9ec26692a59eb4e2118c397336712a6548e6a16408e094001f8f0c173e67afcc2  ninja-1.10.1.tar.gz"