summaryrefslogtreecommitdiff
path: root/meson-postinstall.sh
blob: fa131eabb30ff07b022914b28fe7a2d4bf0114fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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