summaryrefslogtreecommitdiff
path: root/community/ninja/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-04-06 03:44:19 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-04-06 03:44:19 +0000
commit38eab99b0f820f0d7720c7bc4c1dab4a7d5eaeab (patch)
tree45f0da5464a9e95bb5fbbf579094741cf6c66317 /community/ninja/PKGBUILD
parent12c37e7b5594be3af3c03e543648b2a1c430bdcc (diff)
Sun Apr 6 03:39:50 UTC 2014
Diffstat (limited to 'community/ninja/PKGBUILD')
-rw-r--r--community/ninja/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/community/ninja/PKGBUILD b/community/ninja/PKGBUILD
new file mode 100644
index 000000000..c9cd5a61e
--- /dev/null
+++ b/community/ninja/PKGBUILD
@@ -0,0 +1,48 @@
+# $Id: PKGBUILD 108867 2014-04-05 22:02:16Z anatolik $
+# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
+# Contributor: Filip Brcic <brcha@gna.org>
+# Contributor: Mika Fischer <mika.fischer@zoopnet.de>
+# Contributor: Gergely Imreh <imrehgATgmailDOTcom>
+
+pkgname=ninja
+pkgver=1.4.0
+pkgrel=1
+pkgdesc='Small build system with a focus on speed'
+arch=(i686 x86_64)
+url='http://martine.github.io/ninja/'
+license=(Apache)
+depends=(gcc-libs)
+makedepends=(asciidoc python2 re2c python2 emacs-nox)
+checkdepends=(gtest)
+source=(https://github.com/martine/ninja/archive/v$pkgver.zip)
+sha1sums=('5de3dcd1564056f4f350d99f950f581214893a05')
+
+build() {
+ cd ninja-$pkgver
+
+ python2 ./bootstrap.py
+ emacs -Q --batch -f batch-byte-compile misc/ninja-mode.el
+ asciidoc doc/manual.asciidoc
+}
+
+check() {
+ cd ninja-$pkgver
+
+ python2 ./configure.py --with-gtest=/usr/src/gtest
+ ./ninja ninja_test
+ ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
+}
+
+package() {
+ cd ninja-$pkgver
+
+ 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/ninja-mode.el "$pkgdir/usr/share/emacs/site-lisp/ninja-mode.el"
+ install -m644 -D misc/ninja-mode.elc "$pkgdir/usr/share/emacs/site-lisp/ninja-mode.elc"
+
+ install -m644 -D misc/bash-completion "$pkgdir/usr/share/bash-completion/completions/ninja"
+ install -m644 -D misc/zsh-completion "$pkgdir/usr/share/zsh/site-functions/_ninja"
+}