updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / unp / unp.install
blob8b766a13f14511f5564c7cb3b3cebda26d4da931
1 SUPPORTED=(unarj unrar unzip bzip2 p7zip unace lha orange cpio sharutils cabextract rpm2cpio)
3 post_install() {
4   echo "Optional dependencies for unp"
5   for _pkg in ${SUPPORTED[@]}; do
6     case "$_pkg" in
7       lha)        _fmt=LH-7 ;;
8       sharutils)  _fmt=unshar ;;
9       cabextract) _fmt=cab ;;
10       rpm2cpio)   _fmt=rpm ;;
11       *)          _fmt=$_pkg ;;
12     esac
13     pacman -Q $_pkg &> /dev/null
14     [ $? -gt 0 ] && echo "    $_pkg: for $_fmt support"
15   done
18 post_upgrade() {
19   post_install $1