summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-12-03 00:40:53 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-12-04 19:28:52 +0000
commit715164c94a8444d379af501c0bd731fb859f39aa (patch)
tree0822107f91e75e4f5f183765dbc127041d169bdb /graphics
parent6afa667105cfae31bb9c6dbf89d9d9302f65fc45 (diff)
downloadslackbuilds-715164c94a8444d379af501c0bd731fb859f39aa.tar.gz
graphics/viewnior: Fixed tarball handling.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/viewnior/viewnior.SlackBuild7
1 files changed, 3 insertions, 4 deletions
diff --git a/graphics/viewnior/viewnior.SlackBuild b/graphics/viewnior/viewnior.SlackBuild
index 9d208418b6..e8284f3626 100644
--- a/graphics/viewnior/viewnior.SlackBuild
+++ b/graphics/viewnior/viewnior.SlackBuild
@@ -60,10 +60,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz
-mv Viewnior-$PRGNAM-$VERSION $PRGNAM-$VERSION
-cd $PRGNAM-$VERSION
+rm -rf Viewnior-$PRGNAM-$VERSION
+tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xzvf $CWD/Viewnior-$PRGNAM-$VERSION.tar.gz
+cd Viewnior-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \