aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multimedia/Mopidy/Mopidy.SlackBuild21
-rw-r--r--multimedia/Mopidy/Mopidy.info8
2 files changed, 19 insertions, 10 deletions
diff --git a/multimedia/Mopidy/Mopidy.SlackBuild b/multimedia/Mopidy/Mopidy.SlackBuild
index aa4acaa44d2f..14c9fcf933b8 100644
--- a/multimedia/Mopidy/Mopidy.SlackBuild
+++ b/multimedia/Mopidy/Mopidy.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Mopidy
-# Copyright 2014-2017 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2022 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=Mopidy
-VERSION=${VERSION:-2.1.0}
+VERSION=${VERSION:-3.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -79,16 +79,25 @@ 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
+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/man/man1
-cp $CWD/mopidy.1.gz $PKG/usr/man/man1/mopidy.1.gz
+mkdir -p $PKG/usr/bin
+install -m0755 extra/mopidyctl/mopidyctl $PKG/usr/bin
+
+mkdir -p $PKG/usr/share/applications
+cp extra/desktop/mopidy.desktop $PKG/usr/share/applications/
+
+mkdir -p $PKG/usr/man/man8
+cp extra/mopidyctl/mopidyctl.8 $PKG/usr/man/man8
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS LICENSE PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS LICENSE PKG-INFO README.rst docs/*.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/multimedia/Mopidy/Mopidy.info b/multimedia/Mopidy/Mopidy.info
index 27e1195acb4f..3c3cc4e38bb3 100644
--- a/multimedia/Mopidy/Mopidy.info
+++ b/multimedia/Mopidy/Mopidy.info
@@ -1,10 +1,10 @@
PRGNAM="Mopidy"
-VERSION="2.1.0"
+VERSION="3.4.0"
HOMEPAGE="https://www.mopidy.com/"
-DOWNLOAD="https://pypi.python.org/packages/60/76/427ad1fbe879034e34cf9898310ba5a9cc42cd36b08898059be06066fa38/Mopidy-2.1.0.tar.gz"
-MD5SUM="ac41bb099309653b6a859daa32af30fb"
+DOWNLOAD="https://files.pythonhosted.org/packages/10/16/aff3fb185a1e9c2d0ce98bee39f742f6a8ad46ba0153a71903581bbc9a20/Mopidy-3.4.0.tar.gz"
+MD5SUM="7694e738ebe46a41a5f4ad4df3311263"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="Pykka gst-python tornado"
+REQUIRES="Pykka python3-tornado"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"