aboutsummaryrefslogtreecommitdiff
path: root/extra/glib/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/glib/build')
-rwxr-xr-xextra/glib/build18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/glib/build b/extra/glib/build
new file mode 100755
index 00000000..60f19b1f
--- /dev/null
+++ b/extra/glib/build
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+# Remove 'libelf' dependency.
+sed -i 's/if have_libelf/if not have_libelf/' gio/meson.build
+
+meson \
+ --prefix=/usr \
+ -Dman=false \
+ -Dfam=false \
+ . build
+
+ninja -C build
+ninja -C build install
+
+# Purge gdbus.
+rm -rf "$1/usr/bin/gdbus"