updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / culmus / culmus.install
blob1376ca5cec826bf0ec3a0e9fea4302cbe1caa84d
1 configs=('61-culmus.conf')
3 update_fontcache() {
4   fc-cache -fs
5   mkfontscale /usr/share/fonts/Type1
6   mkfontdir /usr/share/fonts/Type1
7   mkfontscale /usr/share/fonts/TTF
8   mkfontdir /usr/share/fonts/TTF
11 post_install() {
12   pushd /etc/fonts/conf.d > /dev/null
13   for config in "${configs[@]}"; do
14     ln -sf ../conf.avail/${config} .
15   done
16   popd > /dev/null
18   update_fontcache
21 post_upgrade() {
22   if [ "`vercmp 0.102-1 $2`" != "-1" ] || [ ! -L /etc/fonts/conf.d/61-culmus.conf ]; then
23     pushd /etc/fonts/conf.d > /dev/null
24     for config in "${configs[@]}"; do
25       ln -sf ../conf.avail/${config} .
26     done
27     popd > /dev/null
28   fi
30   update_fontcache
33 post_remove() {
34   pushd /etc/fonts/conf.d > /dev/null
35   for config in "${configs[@]}"; do
36     rm -f ${config}
37   done
38   popd > /dev/null
40   update_fontcache