diff options
author | zlowly | 2015-07-24 14:42:46 +0800 |
---|---|---|
committer | zlowly | 2015-07-24 14:42:46 +0800 |
commit | 8686216bf8ec574a2917625bea7ada191ba12c1d (patch) | |
tree | 0f670f83440cbe2f5d37304b0fcb94cb4342232d /wqy-microhei-nightly_build.install | |
download | aur-wqy-microhei-nightly_build.tar.gz |
Initial import
Diffstat (limited to 'wqy-microhei-nightly_build.install')
-rw-r--r-- | wqy-microhei-nightly_build.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/wqy-microhei-nightly_build.install b/wqy-microhei-nightly_build.install new file mode 100644 index 000000000000..a98ba7fe991a --- /dev/null +++ b/wqy-microhei-nightly_build.install @@ -0,0 +1,21 @@ +post_install() { + echo -n "Updating font cache... " + mkfontscale /usr/share/fonts/wenquanyi/wqy-microhei + mkfontdir /usr/share/fonts/wenquanyi/wqy-microhei + fc-cache -f /usr/share/fonts/wenquanyi/wqy-microhei > /dev/null + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + rm -r /usr/share/fonts/wenquanyi/wqy-microhei + rmdir --ignore-fail-on-non-empty /usr/share/fonts/wenquanyi/ +} + +op=$1 +shift + +$op $* |