From e5b80002e07952b90a451bd3ad4cb6531ca58221 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 29 Jun 2023 02:44:33 -0400 Subject: [PATCH] multimedia/pipe-viewer: Updated for version 0.4.7. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- multimedia/pipe-viewer/pipe-viewer.SlackBuild | 12 ++--- multimedia/pipe-viewer/pipe-viewer.info | 6 +-- multimedia/pipe-viewer/restore_mplayer.diff | 44 +++++++++---------- 3 files changed, 32 insertions(+), 30 deletions(-) diff --git a/multimedia/pipe-viewer/pipe-viewer.SlackBuild b/multimedia/pipe-viewer/pipe-viewer.SlackBuild index f3ce9c278e..8be7325cc3 100644 --- a/multimedia/pipe-viewer/pipe-viewer.SlackBuild +++ b/multimedia/pipe-viewer/pipe-viewer.SlackBuild @@ -6,6 +6,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230629 bkw: update for v0.4.7. # 20230103 bkw: v0.4.4 BUILD=2: # - size icons correctly. # - include doinst.sh if gtk frontend built. @@ -14,8 +15,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pipe-viewer -VERSION=${VERSION:-0.4.4} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.4.7} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -108,9 +109,10 @@ find $PKG -name perllocal.pod \ find $PKG -depth -type d -empty -delete || true -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a Changes LICENSE README* $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a Changes LICENSE README* $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild # the permissions in the final package are weird. find $PKG -type f -print0 | xargs -0 chmod 644 diff --git a/multimedia/pipe-viewer/pipe-viewer.info b/multimedia/pipe-viewer/pipe-viewer.info index bc18a3984f..583c56e30f 100644 --- a/multimedia/pipe-viewer/pipe-viewer.info +++ b/multimedia/pipe-viewer/pipe-viewer.info @@ -1,8 +1,8 @@ PRGNAM="pipe-viewer" -VERSION="0.4.4" +VERSION="0.4.7" HOMEPAGE="https://github.com/trizen/pipe-viewer/" -DOWNLOAD="https://github.com/trizen/pipe-viewer/archive/0.4.4/pipe-viewer-0.4.4.tar.gz" -MD5SUM="da536990f1fcb9ac050a8a7ac847c0f7" +DOWNLOAD="https://github.com/trizen/pipe-viewer/archive/0.4.7/pipe-viewer-0.4.7.tar.gz" +MD5SUM="8556695a94c1fc7b306374e7c449c535" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="perl-data-dump perl-JSON perl-http-message perl-LWP-Protocol-https perl-Module-Build perl-Term-ReadLine-Gnu" diff --git a/multimedia/pipe-viewer/restore_mplayer.diff b/multimedia/pipe-viewer/restore_mplayer.diff index 3e9eb486bb..3188a9fcec 100644 --- a/multimedia/pipe-viewer/restore_mplayer.diff +++ b/multimedia/pipe-viewer/restore_mplayer.diff @@ -1,9 +1,9 @@ -diff -Naur pipe-viewer-0.1.8/bin/gtk-pipe-viewer pipe-viewer-0.1.8.patched/bin/gtk-pipe-viewer ---- pipe-viewer-0.1.8/bin/gtk-pipe-viewer 2022-01-21 21:34:05.000000000 -0500 -+++ pipe-viewer-0.1.8.patched/bin/gtk-pipe-viewer 2022-01-30 11:34:17.005950305 -0500 -@@ -187,6 +187,13 @@ +diff -Naur pipe-viewer-0.4.7/bin/gtk-pipe-viewer pipe-viewer-0.4.7.patched/bin/gtk-pipe-viewer +--- pipe-viewer-0.4.7/bin/gtk-pipe-viewer 2023-06-11 08:55:44.000000000 -0400 ++++ pipe-viewer-0.4.7.patched/bin/gtk-pipe-viewer 2023-06-29 02:19:58.827392189 -0400 +@@ -191,6 +191,12 @@ fs => q{--fullscreen}, - arg => q{--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*}, + arg => q{--really-quiet --force-media-title=*TITLE* --no-ytdl --no-terminal *VIDEO*}, }, + mplayer => { + cmd => q{mplayer}, @@ -11,25 +11,25 @@ diff -Naur pipe-viewer-0.1.8/bin/gtk-pipe-viewer pipe-viewer-0.1.8.patched/bin/g + audio => q{-audiofile *AUDIO*}, + fs => q{-fs}, + arg => q{-prefer-ipv4 -really-quiet -title *TITLE* *VIDEO*}, -+ }, }, video_player_selected => undef, # autodetect it later -diff -Naur pipe-viewer-0.1.8/bin/pipe-viewer pipe-viewer-0.1.8.patched/bin/pipe-viewer ---- pipe-viewer-0.1.8/bin/pipe-viewer 2022-01-21 21:34:05.000000000 -0500 -+++ pipe-viewer-0.1.8.patched/bin/pipe-viewer 2022-01-30 11:35:25.549944074 -0500 -@@ -177,6 +177,14 @@ - arg => q{--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*}, - novideo => q{--no-video}, - }, -+ mplayer => { -+ cmd => q{mplayer}, -+ srt => q{-sub *SUB*}, -+ audio => q{-audiofile *AUDIO*}, -+ fs => q{-fs}, -+ arg => q{-prefer-ipv4 -really-quiet -title *TITLE* *VIDEO*}, -+ novideo => q{-novideo}, -+ }, - }, +diff -Naur pipe-viewer-0.4.7/bin/pipe-viewer pipe-viewer-0.4.7.patched/bin/pipe-viewer +--- pipe-viewer-0.4.7/bin/pipe-viewer 2023-06-11 08:55:44.000000000 -0400 ++++ pipe-viewer-0.4.7.patched/bin/pipe-viewer 2023-06-29 02:36:34.948298445 -0400 +@@ -200,6 +200,15 @@ + arg => q{--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*}, + novideo => q{--no-video}, + }, ++ ++ mplayer => { ++ cmd => q{mplayer}, ++ srt => q{-sub *SUB*}, ++ audio => q{-audiofile *AUDIO*}, ++ fs => q{-fs}, ++ arg => q{-prefer-ipv4 -really-quiet -title *TITLE* *VIDEO*}, ++ novideo => q{-novideo}, ++ }, + }, video_player_selected => (