1 SUPPORTED=(unarj unrar unzip bzip2 p7zip unace lha orange cpio sharutils cabextract rpm2cpio)
4 echo "Optional dependencies for unp"
5 for _pkg in ${SUPPORTED[@]}; do
8 sharutils) _fmt=unshar ;;
9 cabextract) _fmt=cab ;;
13 pacman -Q $_pkg &> /dev/null
14 [ $? -gt 0 ] && echo " $_pkg: for $_fmt support"