summaryrefslogtreecommitdiff
path: root/network/mps-youtube/mps-youtube.SlackBuild
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 /network/mps-youtube/mps-youtube.SlackBuild
parent3423f9942e0af21b7af9182f4124320c88da2a7a (diff)
downloadslackbuilds-2a6bd8de8f2722cc7a86088d4eae83d9660f3043.tar.gz
network/mps-youtube: Updated for version 0.2.5.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'network/mps-youtube/mps-youtube.SlackBuild')
-rw-r--r--network/mps-youtube/mps-youtube.SlackBuild13
1 files changed, 8 insertions, 5 deletions
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