#!/bin/sh

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
export PATH

case $2 in
POST-INSTALL)
    echo -n "Creating module list... "
    /usr/local/bin/pango-querymodules > /usr/local/etc/pango/pango.modules
    echo "done."
    echo "Running fc-cache to build fontconfig cache..."
    fc-cache -f -v
    ;;
esac
