From 58bc509a0e4dab4ce51b0cee87a0d897f2e4a75e Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 8 Jul 2018 22:55:14 -0500 Subject: user/ninja: pull in, bump, fix --- user/ninja/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 user/ninja/APKBUILD diff --git a/user/ninja/APKBUILD b/user/ninja/APKBUILD new file mode 100644 index 000000000..005f7114a --- /dev/null +++ b/user/ninja/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: k0r10n +# Maintainer: +pkgname=ninja +pkgver=1.8.2 +pkgrel=1 +pkgdesc="Small build system with a focus on speed" +url="https://ninja-build.org/" +arch="all" +license="Apache-2.0" +makedepends="asciidoctor gtest python3 re2c" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/martine/ninja/archive/v$pkgver.tar.gz" + +build() { + cd "$builddir" + python3 ./configure.py --bootstrap + asciidoctor doc/manual.asciidoc +} + +check() { + cd "$builddir" + + ./ninja ninja_test + ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots +} + +package() { + cd "$builddir" + 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="1650bf9e3eddeb0b0fbb415c2b8e0a7c094421e991fa8139fd77fae0f6ee7ee980b7cf5e98d883c3a884f99abcb06fa26e3980af3a3a5bb6dd655124755782c2 ninja-1.8.2.tar.gz" -- cgit v1.2.3-70-g09d2