if test -f $arch/$pkgb.tar.gz ;then pkgarchext=.tar.gz ;z=z
elif test -f $arch/$pkgb.tgz ;then pkgarchext=.tgz ;z=z
elif test -f $arch/$pkgb.tar.bz2;then pkgarchext=.tar.bz2;z=j
if test -f $arch/$pkgb.tar.gz ;then pkgarchext=.tar.gz ;z=z
elif test -f $arch/$pkgb.tgz ;then pkgarchext=.tgz ;z=z
elif test -f $arch/$pkgb.tar.bz2;then pkgarchext=.tar.bz2;z=j