summaryrefslogtreecommitdiff
path: root/repo/gn/gn.xibuild
blob: 634b9d11e43db2c3f69820d14fca4913ee37ccfe (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
#!/bin/sh

NAME="gn"
DESC="Meta-build system that generates build files for Ninja"

MAKEDEPS="python"

SOURCE="https://gn.googlesource.com/gn.git"

ADDITIONAL="
python3.patch
"

build() {
	./build/gen.py
	ninja -C out
}

check() {
	./out/gn_unittests
}

package() {
	install -Dm755 out/gn "$PKG_DEST"/usr/bin/gn
}