blob: 5272894fbafd572bb7ca0f4d5a859d52e60fdc9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgname=ninja-fuchsia-git
pkgver=r3033.83b2a567
pkgrel=1
pkgdesc='Small build system with a focus on speed - Fichsia version with JobServer and improved status output'
arch=(x86_64)
url=https://fuchsia.googlesource.com/third_party/github.com/ninja-build/ninja/
provides=(ninja)
conflicts=(ninja)
license=(Apache)
depends=(gcc-libs)
makedepends=(python re2c git)
_commit=83b2a5674ae232da161ce26a18ac6802ffdcbccf
source=("$pkgname::git+$url#commit=$_commit")
sha256sums=(SKIP)
pkgver () {
cd "$pkgname"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build () {
cd "$pkgname"
python configure.py --bootstrap
}
package () {
cd "$pkgname"
install -m755 -D ninja "$pkgdir/usr/bin/ninja"
install -m644 -D doc/manual.asciidoc "$pkgdir/usr/share/doc/ninja/manual.asciidoc"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/ninja/COPYING"
install -m644 -D misc/ninja.vim "$pkgdir/usr/share/vim/vimfiles/syntax/ninja.vim"
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"
}
|