From 8ae3e0dfab83a5a721f011c881b76f77510ebae2 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 14 Aug 2016 03:22:44 -0300 Subject: smplayer-16.8.0-1.parabola1: updating version --- libre/smplayer/PKGBUILD | 27 ++++++++++++++------------- libre/smplayer/disable-smtube-support.patch | 26 ++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 13 deletions(-) create mode 100644 libre/smplayer/disable-smtube-support.patch (limited to 'libre') diff --git a/libre/smplayer/PKGBUILD b/libre/smplayer/PKGBUILD index b639e88ac..8709a2821 100644 --- a/libre/smplayer/PKGBUILD +++ b/libre/smplayer/PKGBUILD @@ -1,5 +1,4 @@ -# $Id: PKGBUILD 179682 2016-06-11 17:09:39Z arojas $ -# Maintainer (Arch): +# Maintainer (Arch): Levente Polyak # Contributor (Arch): Ionut Biru # Contributor (Arch): Allan McRae # Contributor (Arch): Alessio 'mOLOk' Bolognino @@ -8,26 +7,28 @@ # Maintainer: André Silva pkgname=smplayer -pkgver=16.6.0 +pkgver=16.8.0 pkgrel=1.parabola1 -pkgdesc="A complete front-end for MPlayer, without nonfree smtube recommendation" +pkgdesc='Media player with built-in codecs that can play virtually all video and audio formats, without nonfree smtube support' +url='http://smplayer.sourceforge.net/' arch=('i686' 'x86_64' 'armv7h') -url="http://smplayer.sourceforge.net/" license=('GPL') -depends=('qt5-script' 'mplayer' 'hicolor-icon-theme') +depends=('qt5-script' 'mpv' 'hicolor-icon-theme') makedepends=('qt5-tools') optdepends=('smplayer-themes: icon themes collection' 'smplayer-skins: skin themes collection' - 'mpv: for using mpv instead of mplayer') -source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2) -md5sums=('61d6fc855d13b33eccb3f5d2a1472220') + 'youtube-dl: youtube videos and streaming' + 'mplayer: alternative multimedia engine') +source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 + disable-smtube-support.patch) +md5sums=('48b001b6c00e5495be4316c9e1589d11' + '0a22c31bb756226617664b1a6e5c4f1d') prepare() { cd $pkgname-$pkgver - sed -i 's|DEFINES [+][=] YOUTUBE_SUPPORT|#DEFINES += YOUTUBE_SUPPORT| - s|DEFINES [+][=] YT_USE_SCRIPT|#DEFINES += YT_USE_SCRIPT| - ' src/smplayer.pro + # disable SMTube support + patch -p1 -i $srcdir/disable-smtube-support.patch # fix GNU/Linux name sed -i 's|Linux|GNU/Linux|' src/smplayer.cpp @@ -43,5 +44,5 @@ build() { package() { cd $pkgname-$pkgver make DOC_PATH=/usr/share/doc/smplayer \ - DESTDIR="$pkgdir" PREFIX="/usr" install + DESTDIR="$pkgdir" PREFIX=/usr install } diff --git a/libre/smplayer/disable-smtube-support.patch b/libre/smplayer/disable-smtube-support.patch new file mode 100644 index 000000000..bf41c8d95 --- /dev/null +++ b/libre/smplayer/disable-smtube-support.patch @@ -0,0 +1,26 @@ +diff --git a/src/playlist.h b/src/playlist.h +index 025ffc9..ec82b50 100644 +--- a/src/playlist.h ++++ b/src/playlist.h +@@ -27,7 +27,7 @@ + #include + #include "mediadata.h" + +-#define PLAYLIST_DOWNLOAD ++//#define PLAYLIST_DOWNLOAD + //#define PLAYLIST_DOUBLE_TOOLBAR + + class PLItem : public QStandardItem { +diff --git a/src/smplayer.pro b/src/smplayer.pro +index 7e05ff9..003819c 100644 +--- a/src/smplayer.pro ++++ b/src/smplayer.pro +@@ -13,7 +13,7 @@ RESOURCES = icons.qrc + DEFINES += SINGLE_INSTANCE + DEFINES += FIND_SUBTITLES + DEFINES += VIDEOPREVIEW +-DEFINES += YOUTUBE_SUPPORT ++#DEFINES += YOUTUBE_SUPPORT + DEFINES += BLURAY_SUPPORT + DEFINES += TV_SUPPORT + DEFINES += GUI_CHANGE_ON_RUNTIME -- cgit v1.2.3