~tristan957/harvest-almanac

ref: f48b10b7c275e961a2d5a64bc9346898e8121d4a harvest-almanac/meson_post_install.sh -rwxr-xr-x 449 bytes
f48b10b7Tristan Partin harvest-alamnac: spacing 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

icon_cache_folder="$MESON_INSTALL_PREFIX/share/icons/hicolor"

if [ -z $DESTDIR ]; then
	echo 'Compiling GSchema'
	glib-compile-schemas "$MESON_INSTALL_PREFIX/share/glib-2.0/schemas"

	if [ -f "$icon_cache_folder/.icon-theme.cache" ]; then
		echo 'Updating icon cache'
		gtk-update-icon-cache -qtf $icon_cache_folder
	fi

	echo 'Updating desktop database'
	update-desktop-database -q "$MESON_INSTALL_PREFIX/share/applications"
fi