make cache dir /data/var/cache/pacman/pkg add custom message to post_upgrade() of pacman.install