system/makeself: Fixed for github tarball.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
David Spencer 2013-11-24 22:25:50 +00:00 committed by Heinz Wiesinger
parent 2372045179
commit 3c0e7946d5

View file

@ -40,7 +40,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-release-$VERSION
tar zxvf $CWD/release-${VERSION}.tar.gz
if [ -e $CWD/release-${VERSION}.tar.gz ]; then
tar xvf $CWD/release-${VERSION}.tar.gz
else
tar xvf $CWD/$PRGNAM-release-${VERSION}.tar.gz
fi
cd $PRGNAM-release-$VERSION
chown -R root:root .
find -L . \