post_install() {
  glib-compile-schemas /usr/share/glib-2.0/schemas
  if ! getent passwd colord >/dev/null; then
    groupadd -g 124 colord
    useradd -d /var/lib/colord -u 124 -g colord -s /bin/false colord
  fi
}

post_upgrade() {
  glib-compile-schemas /usr/share/glib-2.0/schemas
}

post_remove() {
  glib-compile-schemas /usr/share/glib-2.0/schemas
}
