diff options
author | zhuyaliang <[email protected]> | 2021-07-25 11:52:47 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-07-30 19:02:49 +0200 |
commit | 8dca108a6a4bed0b3411e41cb04b143c71036b67 (patch) | |
tree | 35632a66e2d50c89a690e5202a2e0ff56e7285b6 /meson-postinstall.sh | |
parent | a1216168706c08384154d3cea579d223fdc9e81d (diff) | |
download | mate-calc-8dca108a6a4bed0b3411e41cb04b143c71036b67.tar.bz2 mate-calc-8dca108a6a4bed0b3411e41cb04b143c71036b67.tar.xz |
Add build support for meson
Diffstat (limited to 'meson-postinstall.sh')
-rw-r--r-- | meson-postinstall.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meson-postinstall.sh b/meson-postinstall.sh new file mode 100644 index 0000000..fa131ea --- /dev/null +++ b/meson-postinstall.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# Package managers set this so we don't need to run + +if [ -z "$DESTDIR" ]; then + echo Compiling GSettings schemas... + glib-compile-schemas ${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas + + echo Updating desktop database... + update-desktop-database -q ${MESON_INSTALL_PREFIX}/share/applications + + ln -sf ${MESON_INSTALL_PREFIX}/bin/'mate-calc' ${MESON_INSTALL_PREFIX}/bin/'mate-calculator' +fi |