recipes: Adjust 'docsdir' variable to be consistent with the current recipe format
[dragora.git] / recipes / x-libs / gtk3 / post-install
blob8f4e75255037edbd0aebfcdc4d660cce43a6a291
2 # Update GTK+-3.0 modules cache
3 gtk-query-immodules-3.0 --update-cache
5 # Update GLIB schemas
6 for schema_directory in /usr/local/share/glib* /usr/share/glib*
7 do
8     test -d "$schema_directory" || continue;
9     glib-compile-schemas "${schema_directory}"/schemas
10 done
11 unset schema_directory
13 # Update GDK pixbuf loaders cache, just in case
14 chroot . /usr/bin/gdk-pixbuf-query-loaders --update-cache > /dev/null 2>&1
16 echo "Updating desktop database: update-desktop-database -q usr/share/applications"
17 chroot "$rootdir" /usr/bin/update-desktop-database -q usr/share/applications 2> /dev/null
19 echo "Updating ICON cache: gtk-update-icon-cache -q -f -i usr/share/icons/hicolor"
20 chroot "$rootdir" /usr/bin/gtk-update-icon-cache -q -f -i usr/share/icons/hicolor 2> /dev/null