Sophie

Sophie

distrib > Arklinux > devel > i586 > by-pkgid > d0bdbe86928f2de18e233b3c35fdee7e > scriptlet

ttfonts-ps-1.0-1ark.noarch.rpm

POSTIN

/bin/sh
{
	umask 133
	touch /usr/share/fonts/ps/TrueType 2> /dev/null && {
		/usr/bin/mkfontscale /usr/share/fonts/ps/TrueType
		/usr/bin/mkfontdir /usr/share/fonts/ps/TrueType
		/usr/sbin/chkfontpath -q -a /usr/share/fonts/ps/TrueType
	}

	#Update fontconfig cache
	[  -x /usr/bin/fc-cache ] && HOME=/root /usr/bin/fc-cache /usr/share/fonts/ps/TrueType 2> /dev/null
}

POSTUN

/bin/sh
if [ "$1" = 0 ];
then
    umask 133
    /usr/sbin/chkfontpath -q -r /usr/share/fonts/ps/TrueType
    #Update fontconfig cache
    [ -x /usr/bin/fc-cache ] && HOME=/root /usr/bin/fc-cache /usr/share/fonts/ps/TrueType 2> /dev/null
fi