summaryrefslogtreecommitdiffstats
path: root/network/mps-youtube
diff options
context:
space:
mode:
Diffstat (limited to 'network/mps-youtube')
-rw-r--r--network/mps-youtube/README3
-rw-r--r--network/mps-youtube/mps-youtube.SlackBuild16
-rw-r--r--network/mps-youtube/mps-youtube.info2
3 files changed, 14 insertions, 7 deletions
diff --git a/network/mps-youtube/README b/network/mps-youtube/README
index 876d4da819..8d28abbce4 100644
--- a/network/mps-youtube/README
+++ b/network/mps-youtube/README
@@ -2,6 +2,3 @@ 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.
-
-NOTE:
-Please install python3 first before installing all other requirements.
diff --git a/network/mps-youtube/mps-youtube.SlackBuild b/network/mps-youtube/mps-youtube.SlackBuild
index 2438dda7f8..deae75b729 100644
--- a/network/mps-youtube/mps-youtube.SlackBuild
+++ b/network/mps-youtube/mps-youtube.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for mps-youtube
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=mps-youtube
VERSION=${VERSION:-0.2.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -86,4 +96,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/mps-youtube/mps-youtube.info b/network/mps-youtube/mps-youtube.info
index c7ba6ec330..6a4013d274 100644
--- a/network/mps-youtube/mps-youtube.info
+++ b/network/mps-youtube/mps-youtube.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://pypi.python.org/packages/b1/8e/5156416119545e3f5ba16ec0fdbb2c7
MD5SUM="7560fda429491a41b1a4a20ad9cd3a3b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3 Pafy"
+REQUIRES="Pafy"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"