development/setedit: Fix tarball handling.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-03-01 00:09:12 +13:00 committed by Willy Sudiarto Raharjo
parent 0daf350b90
commit 68549eba87
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 5 additions and 1 deletions

View File

@ -72,7 +72,11 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$GIT_COMMIT_VER
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
if [ -e $CWD/$PRGNAM-$VERSION.tar.bz2 ] ; then
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
else
tar xvf $CWD/$PRGNAM-$GIT_COMMIT_VER.tar.bz2
fi
cd $PRGNAM-$GIT_COMMIT_VER/$PRGNAM
if [ "$ARCH" = "x86_64" ]; then