File phallus-fonts.install of Package phallus-fonts-git

update_font_cache() {
    echo "Updating font cache..."
    cd /usr/share/fonts/misc
    mkfontdir
    mkfontscale
    xset -q | grep /usr/share/fonts/misc || xset +fp /usr/share/fonts/misc
    xset fp rehash
    fc-cache -fv
}

post_install() {
    update_font_cache
}

post_remove() {
    update_font_cache
}