summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2021-01-28 21:55:52 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-01-30 10:29:15 +0700
commit7a497b73ff2823be900640f291ab7e838bf1a5f3 (patch)
treea334aa40214c87edbfa13e8f4e3b338e0d6f385b /libraries
parent8b4b638dfe0c41404dc0c459961f4edb14ae5489 (diff)
downloadslackbuilds-7a497b73ff2823be900640f291ab7e838bf1a5f3.tar.gz
libraries/pylast: Updated for version 4.1.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/pylast/README14
-rw-r--r--libraries/pylast/pylast.SlackBuild11
-rw-r--r--libraries/pylast/pylast.info8
3 files changed, 9 insertions, 24 deletions
diff --git a/libraries/pylast/README b/libraries/pylast/README
index a8c4052fb5..3910e5597c 100644
--- a/libraries/pylast/README
+++ b/libraries/pylast/README
@@ -1,13 +1 @@
-Pylast is a python interface to Last.fm.
-Try using the pydoc utility for help on usage.
-
-For more info check out the project's home page at
-http://code.google.com/p/pylast/ or the mailing list
-http://groups.google.com/group/pylast
-
-If you want to build this for use with Python 3.x (needs the optional
-dependency python3) pass the script PYTHON3=yes, like:
-
- PYTHON3=yes ./pylast.SlackBuild
-
-NOTE: python_version="3.3" require python-certifi
+A Python interface to Last.fm and other API-compatible websites such as Libre.fm.
diff --git a/libraries/pylast/pylast.SlackBuild b/libraries/pylast/pylast.SlackBuild
index 3c333b28e1..bb11809871 100644
--- a/libraries/pylast/pylast.SlackBuild
+++ b/libraries/pylast/pylast.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pylast
-# Copyright 2014-2019 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2021 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pylast
-VERSION=${VERSION:-2.4.0} # This is the last verion that is compatible
-BUILD=${BUILD:-1} # with Python 2
+VERSION=${VERSION:-4.1.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -54,9 +54,6 @@ else
LIBDIRSUFFIX=""
fi
-PYTHON=python
-[ "${PYTHON3:-no}" = "yes" ] && PYTHON=python3
-
set -e
rm -rf $PKG
@@ -72,7 +69,7 @@ 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
diff --git a/libraries/pylast/pylast.info b/libraries/pylast/pylast.info
index bed5b0f155..bf31b52c1b 100644
--- a/libraries/pylast/pylast.info
+++ b/libraries/pylast/pylast.info
@@ -1,10 +1,10 @@
PRGNAM="pylast"
-VERSION="2.4.0"
+VERSION="4.1.0"
HOMEPAGE="https://github.com/pylast/pylast"
-DOWNLOAD="https://files.pythonhosted.org/packages/eb/5e/c7aa34730b5184121ca3793028a4e1f2e459f0e1bce6f39b63e501f5acc1/pylast-2.4.0.tar.gz"
-MD5SUM="2dac0c4eb983d25741e610add85f38ee"
+DOWNLOAD="https://files.pythonhosted.org/packages/99/97/75508fee9664e622d2d66e45059e05107464c871ea54a22c3f16a36a01c8/pylast-4.1.0.tar.gz"
+MD5SUM="beea5dced799a7dba0ecd6396c8e366e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="six"
+REQUIRES="python3"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"