summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmeson-postinstall.sh6
-rw-r--r--meson.build2
2 files changed, 8 insertions, 0 deletions
diff --git a/meson-postinstall.sh b/meson-postinstall.sh
new file mode 100755
index 0000000..36b2677
--- /dev/null
+++ b/meson-postinstall.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ -z "$DESTDIR" ]; then
+ echo Compiling GSettings schemas...
+ glib-compile-schemas ${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas
+fi
diff --git a/meson.build b/meson.build
index 17e41bd..1a6f1d2 100644
--- a/meson.build
+++ b/meson.build
@@ -57,3 +57,5 @@ subdir('po')
if get_option('tests')
subdir('test')
endif
+
+meson.add_install_script('meson-postinstall.sh')