1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin:%%PREFIX%%/bin export PATH if [ "$2" = "POST-INSTALL" ]; then echo "Running fc-cache to build fontconfig cache..." fc-cache -f -v elif [ "$2" = "DEINSTALL" ]; then find %%PREFIX%%/lib/X11/fonts/ -name fonts.cache-1 -delete fi