summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/ninja/APKBUILD39
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"