mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
28 lines
538 B
Protocol Buffer
28 lines
538 B
Protocol Buffer
|
# arg 1: the new package version
|
||
|
post_install() {
|
||
|
echo -n "Updating font cache... "
|
||
|
/usr/bin/fc-cache
|
||
|
cd /usr/share/fonts/local
|
||
|
/usr/bin/mkfontdir
|
||
|
/usr/bin/mkfontscale
|
||
|
# cp ../encodings/encodings.dir ./encodings.dir
|
||
|
echo "done."
|
||
|
echo "Note that local fonts are now (with xorg-7.0) in /usr/share/fonts/local/"
|
||
|
}
|
||
|
|
||
|
# # arg 1: the new package version
|
||
|
# # arg 2: the old package version
|
||
|
post_upgrade() {
|
||
|
post_install $1
|
||
|
}
|
||
|
#
|
||
|
# # arg 1: the old package version
|
||
|
post_remove() {
|
||
|
/usr/bin/fc-cache
|
||
|
}
|
||
|
|
||
|
op=$1
|
||
|
shift
|
||
|
|
||
|
$op $*
|