diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-08 22:55:14 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-08 22:55:14 -0500 |
commit | 58bc509a0e4dab4ce51b0cee87a0d897f2e4a75e (patch) | |
tree | 76aae0ae7e27015f3454cc29108fe55790ccbc0c /user | |
parent | 02d1d9f380772fdf9c934e74f2af2c09f1841510 (diff) | |
download | packages-58bc509a0e4dab4ce51b0cee87a0d897f2e4a75e.tar.gz packages-58bc509a0e4dab4ce51b0cee87a0d897f2e4a75e.tar.bz2 packages-58bc509a0e4dab4ce51b0cee87a0d897f2e4a75e.tar.xz packages-58bc509a0e4dab4ce51b0cee87a0d897f2e4a75e.zip |
user/ninja: pull in, bump, fix
Diffstat (limited to 'user')
-rw-r--r-- | user/ninja/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
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 <k0r10n.dev@gmail.com> +# 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" |