summaryrefslogtreecommitdiff
path: root/multimedia/youtube-viewer
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-05-12 19:56:51 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-17 23:45:53 +0700
commitb28046b6c8f7cfff3d549d5e2fcbc9b94d9e2fa6 (patch)
tree67f30f27727591f839bdb360a67ac615f5b2af63 /multimedia/youtube-viewer
parent892f2139a6fbd8a398d5b9b1f82de5293349f269 (diff)
downloadslackbuilds-b28046b6c8f7cfff3d549d5e2fcbc9b94d9e2fa6.tar.gz
multimedia/youtube-viewer: Updated for version 3.1.4.
Diffstat (limited to 'multimedia/youtube-viewer')
-rw-r--r--multimedia/youtube-viewer/youtube-viewer.SlackBuild21
-rw-r--r--multimedia/youtube-viewer/youtube-viewer.info8
2 files changed, 17 insertions, 12 deletions
diff --git a/multimedia/youtube-viewer/youtube-viewer.SlackBuild b/multimedia/youtube-viewer/youtube-viewer.SlackBuild
index 6d44c0c562..124359121c 100644
--- a/multimedia/youtube-viewer/youtube-viewer.SlackBuild
+++ b/multimedia/youtube-viewer/youtube-viewer.SlackBuild
@@ -6,6 +6,11 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20150309 bkw: Updated for 3.1.4 release.
+# Quite a bit of changes under the hood for what's supposed to be
+# a point release: upstream dropped the XML::Fast dep and added
+# JSON::XS.
+
# 20150309 bkw: Updated for 3.1.2 release
# 20140806 bkw:
@@ -17,7 +22,7 @@
# - Added support for gtk-youtube-viewer
PRGNAM=youtube-viewer
-VERSION=${VERSION:-3.1.2}
+VERSION=${VERSION:-3.1.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -50,14 +55,12 @@ fi
set -e
-DIRNAME=WWW-YoutubeViewer
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION/$DIRNAME
+cd $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 \) \
@@ -65,9 +68,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# no need for +x on this
-chmod -x share/*.desktop
-
# perl-gtk2 is a runtime dep, we can build with GTK=yes even if it's not
# installed... but don't do that by default.
GTK="${GTK:-auto}"
@@ -116,8 +116,13 @@ find $PKG -name perllocal.pod \
find $PKG -depth -type d -empty -delete || true
+# the permissions in the final package are weird.
+find $PKG -type f -print0 | xargs -0 chmod 644
+find $PKG -type d -print0 | xargs -0 chmod 755
+chmod +x $PKG/usr/bin/*
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README Changes $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README* Changes $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/multimedia/youtube-viewer/youtube-viewer.info b/multimedia/youtube-viewer/youtube-viewer.info
index b129eb8ab0..c1fb489871 100644
--- a/multimedia/youtube-viewer/youtube-viewer.info
+++ b/multimedia/youtube-viewer/youtube-viewer.info
@@ -1,10 +1,10 @@
PRGNAM="youtube-viewer"
-VERSION="3.1.2"
+VERSION="3.1.4"
HOMEPAGE="http://code.google.com/p/trizen/"
-DOWNLOAD="https://github.com/trizen/youtube-viewer/archive/3.1.2.tar.gz"
-MD5SUM="e512371c3f6d28d2c67397dc2c1d7996"
+DOWNLOAD="https://github.com/trizen/youtube-viewer/archive/3.1.4.tar.gz"
+MD5SUM="7fed8cfe43d588b4ffccdf2710a10d41"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="perl-data-dump perl-LWP-Protocol-https perl-xml-fast"
+REQUIRES="perl-data-dump perl-LWP-Protocol-https perl-lwp-useragent-cached perl-JSON-XS"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"