summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-06-02 04:48:12 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-06-07 22:09:53 +0700
commit2a6bd8de8f2722cc7a86088d4eae83d9660f3043 (patch)
tree990c95a5644bc013d39468b400d5fb6f53245adb
parent3423f9942e0af21b7af9182f4124320c88da2a7a (diff)
downloadslackbuilds-2a6bd8de8f2722cc7a86088d4eae83d9660f3043.tar.gz
network/mps-youtube: Updated for version 0.2.5.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
-rw-r--r--network/mps-youtube/README10
-rw-r--r--network/mps-youtube/desktop.patch15
-rw-r--r--network/mps-youtube/mps-youtube.SlackBuild13
-rw-r--r--network/mps-youtube/mps-youtube.info8
-rw-r--r--network/mps-youtube/slack-desc8
5 files changed, 35 insertions, 19 deletions
diff --git a/network/mps-youtube/README b/network/mps-youtube/README
index 8140a8e0cc..8d28abbce4 100644
--- a/network/mps-youtube/README
+++ b/network/mps-youtube/README
@@ -1,6 +1,4 @@
-Terminal based YouTube jukebox with playlist management.
-- Search and play audio/video
-- Create local playlists
-- Download audio/video
-- Works with Python 2.7 and 3.x
-- Works with Windows, Linux and Mac OS X
+This project is based on mps, a terminal based program to search,
+stream and download music. This implementation uses YouTube as a
+source of content and can play and download video as well as audio.
+The pafy library handles interfacing with YouTube.
diff --git a/network/mps-youtube/desktop.patch b/network/mps-youtube/desktop.patch
new file mode 100644
index 0000000000..f4d5bd91c2
--- /dev/null
+++ b/network/mps-youtube/desktop.patch
@@ -0,0 +1,15 @@
+--- mps-youtube-0.2.5/mps-youtube.desktop.orig 2015-06-02 04:05:05.775959790 +0300
++++ mps-youtube-0.2.5/mps-youtube.desktop 2015-06-02 04:40:39.404285765 +0300
+@@ -2,10 +2,8 @@
+ Name=mps-youtube
+ GenericName=Music Player
+ Keywords=Audio;Song;Podcast;Playlist;youtube.com;
+-Exec=mpsyt %U
++Exec=mpsyt
+ Terminal=true
+ Icon=terminal
+ Type=Application
+-Categories=AudioVideo;Audio;Player;
+-StartupNotify=true
+-NoDisplay=true
++Categories=GTK;AudioVideo;Audio;Player;
diff --git a/network/mps-youtube/mps-youtube.SlackBuild b/network/mps-youtube/mps-youtube.SlackBuild
index 7626d5b27f..a7c181721c 100644
--- a/network/mps-youtube/mps-youtube.SlackBuild
+++ b/network/mps-youtube/mps-youtube.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for mps-youtube
-# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# Copyright 2014-2015 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mps-youtube
-VERSION=${VERSION:-0.2.3}
+VERSION=${VERSION:-0.2.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,13 +69,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-python setup.py install --root=$PKG
+# fix desktop file
+patch -p1 < $CWD/desktop.patch
+
+python3 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/network/mps-youtube/mps-youtube.info b/network/mps-youtube/mps-youtube.info
index 1a87569a66..7c8187c4de 100644
--- a/network/mps-youtube/mps-youtube.info
+++ b/network/mps-youtube/mps-youtube.info
@@ -1,10 +1,10 @@
PRGNAM="mps-youtube"
-VERSION="0.2.3"
+VERSION="0.2.5"
HOMEPAGE="http://github.com/np1/mps-youtube"
-DOWNLOAD="https://pypi.python.org/packages/source/m/mps-youtube/mps-youtube-0.2.3.tar.gz"
-MD5SUM="1859befe6a30e6aa834f1cb3cb352e49"
+DOWNLOAD="https://github.com/np1/mps-youtube/archive/v0.2.5.tar.gz"
+MD5SUM="99016b53b7dfb440080d8429443aea9b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="Pafy"
+REQUIRES="python3 Pafy"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"
diff --git a/network/mps-youtube/slack-desc b/network/mps-youtube/slack-desc
index 7d74870739..4e4db735b7 100644
--- a/network/mps-youtube/slack-desc
+++ b/network/mps-youtube/slack-desc
@@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
mps-youtube: mps-youtube (Terminal based YouTube jukebox)
mps-youtube:
-mps-youtube: Terminal based YouTube jukebox with playlist management.
+mps-youtube: This project is based on mps, a terminal based program to search,
+mps-youtube: stream and download music. This implementation uses YouTube as a
+mps-youtube: source of content and can play and download video as well as audio.
+mps-youtube: The pafy library handles interfacing with YouTube.
mps-youtube:
mps-youtube: Homepage: https://github.com/np1/mps-youtube
mps-youtube:
mps-youtube:
mps-youtube:
-mps-youtube:
-mps-youtube:
-mps-youtube: