summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2017-07-02 00:13:52 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-08 07:11:49 +0700
commite7ee4899e23eab2ef3868d92d59c3c78c51f4bd6 (patch)
treecabd3d94f8dc10e4d72a3a70dbe6c6e43f463cbd
parentc7b1aa29a1e7644cec1285cb076c09856269818b (diff)
downloadslackbuilds-e7ee4899e23eab2ef3868d92d59c3c78c51f4bd6.tar.gz
network/youtube-dl: Fixed tarball handling.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
-rw-r--r--network/youtube-dl/youtube-dl.SlackBuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/network/youtube-dl/youtube-dl.SlackBuild b/network/youtube-dl/youtube-dl.SlackBuild
index 33bf5b35e2..35895a2311 100644
--- a/network/youtube-dl/youtube-dl.SlackBuild
+++ b/network/youtube-dl/youtube-dl.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=youtube-dl
SRCNAM=$(echo $PRGNAM | tr - _)
VERSION=${VERSION:-2017.06.25}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -62,7 +62,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \