summaryrefslogtreecommitdiff
path: root/meson-postinstall.sh
diff options
context:
space:
mode:
authorBobby Rong <[email protected]>2024-08-03 20:48:42 +0800
committerLuke from DC <[email protected]>2024-08-03 17:58:19 +0000
commit99c7f79ded93e50f6449fba599e3b212ce7e3abb (patch)
treed7392b7db784f7f937ab1abd07771e79c5b924bf /meson-postinstall.sh
parentd884cf3135c1ea29141e54fee8b54eb7b04f1492 (diff)
downloadlibmatekbd-99c7f79ded93e50f6449fba599e3b212ce7e3abb.tar.bz2
libmatekbd-99c7f79ded93e50f6449fba599e3b212ce7e3abb.tar.xz
meson: Compile gsettings schemasHEADmaster
Same as https://github.com/mate-desktop/mate-wayland-session/commit/9bc03ecd9cfdb7ba16a76fa6a569982222d3d422. Since we install the org.mate.peripherals-keyboard-xkb gschemas here, it makes sense for us to do that. This is also done in autotools build via @GSETTINGS_RULES@.
Diffstat (limited to 'meson-postinstall.sh')
-rwxr-xr-xmeson-postinstall.sh6
1 files changed, 6 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