summaryrefslogtreecommitdiff
path: root/network/youtube-dl/youtube-dl.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2018-06-30 09:07:08 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-07 06:54:23 +0700
commit56125c152826f73e75aca1da3532be3869483cfd (patch)
treec5d5fabf2b1c00276153d81bb4e5b09676304081 /network/youtube-dl/youtube-dl.SlackBuild
parent42fc2daf4444cd3961ba0bc2cd6d99271e4ead3d (diff)
downloadslackbuilds-56125c152826f73e75aca1da3532be3869483cfd.tar.gz
network/youtube-dl: Updated for version 2018.06.25.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'network/youtube-dl/youtube-dl.SlackBuild')
-rw-r--r--network/youtube-dl/youtube-dl.SlackBuild22
1 files changed, 6 insertions, 16 deletions
diff --git a/network/youtube-dl/youtube-dl.SlackBuild b/network/youtube-dl/youtube-dl.SlackBuild
index b3fcd23baf..247333eea4 100644
--- a/network/youtube-dl/youtube-dl.SlackBuild
+++ b/network/youtube-dl/youtube-dl.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=youtube-dl
-VERSION=${VERSION:-2018.06.02}
+VERSION=${VERSION:-2018.06.25}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,7 +61,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+mkdir $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -C $PRGNAM-$VERSION --strip-components 1
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -73,7 +74,6 @@ find -L . \
# setup.py patch
patch -p1 < $CWD/setup.patch
-make
python setup.py install --root=$PKG
# Python 3 support.
@@ -81,21 +81,11 @@ if $(python3 -c 'import sys' 2>/dev/null); then
python3 setup.py install --root=$PKG
fi
-# enable bash and fish completion file
-chmod 0755 $PKG/etc/bash_completion.d/${PRGNAM}.bash-completion
-chmod 0755 $PKG/etc/fish/completions/${PRGNAM}.fish
-
-# remove strange folders.
-rm -rf $PKG/usr/usr
-
-# install man page
-mkdir -p $PKG/usr/man/man1
-install -D -m0644 $CWD/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1
-gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.md LICENSE AUTHORS ${PRGNAM}.plugin.zsh docs/*.md \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md LICENSE AUTHORS ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install