libraries/muParser: Fix tarball handling.

Signed-off-by: David Spencer <baildon.research@googlemail.com>
This commit is contained in:
David Spencer 2016-06-05 19:22:36 +01:00 committed by Willy Sudiarto Raharjo
parent a4f1aee003
commit 0f6e7fd029
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -62,12 +62,12 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$SRCVER
rm -rf $SRCNAM-$VERSION
if [ -e $CWD/$SRCVER.tar.gz ]; then
tar xvf $CWD/$SRCVER.tar.gz
else
tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
fi
cd $SRCNAM-$VERSION