skype.spec: fix upstream download file name change; let tar autodetect compression format

This commit is contained in:
Silvan Calarco 2011-10-19 12:16:16 +02:00
parent c5a3f00931
commit 727e2517eb

View File

@ -38,15 +38,11 @@ tmpdir=$(mktemp -q -d -t skype.XXXXXXXX)
wget -nv --timeout=10 --tries=2 \
${SKYPE_URL}${SKYPE_PCK} -P ${tmpdir}
SKYPE_ARCHIVE="`ls ${tmpdir}/skype-*`"
SKYPE_ARCHIVE="`ls ${tmpdir}/*skype-* 2>/dev/null`"
[ -f ${SKYPE_ARCHIVE} ] || exit 1
if [ `echo ${SKYPE_ARCHIVE} | grep "tar.bz2$"` ]; then
tar xjf ${SKYPE_ARCHIVE} --strip-components=1
else
tar xzf ${SKYPE_ARCHIVE} --strip-components=1
fi
tar xf ${SKYPE_ARCHIVE} --strip-components=1
%build -q