summaryrefslogtreecommitdiff
path: root/repo/gn/gn.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
committerdavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
commit9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (patch)
tree278bbf05c72536a30e701eebbd3546ba137543e7 /repo/gn/gn.xibuild
parentf6332a43c35387c4a2dea1746be5fd092890ae0e (diff)
added python deps for libvirt
Diffstat (limited to 'repo/gn/gn.xibuild')
-rw-r--r--repo/gn/gn.xibuild26
1 files changed, 26 insertions, 0 deletions
diff --git a/repo/gn/gn.xibuild b/repo/gn/gn.xibuild
new file mode 100644
index 0000000..634b9d1
--- /dev/null
+++ b/repo/gn/gn.xibuild
@@ -0,0 +1,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
+}
+