From 4901e007abbc0929c09ac0f36d05813c851d719d Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Tue, 18 Oct 2022 18:20:58 +0100 Subject: [PATCH] development/mutagen: Updated for version 1.46.0. Signed-off-by: Willy Sudiarto Raharjo --- development/mutagen/README | 4 +-- development/mutagen/mutagen.SlackBuild | 49 +++++++++++++------------- development/mutagen/mutagen.info | 8 ++--- 3 files changed, 31 insertions(+), 30 deletions(-) diff --git a/development/mutagen/README b/development/mutagen/README index c344159d01..78a4496dec 100644 --- a/development/mutagen/README +++ b/development/mutagen/README @@ -11,5 +11,5 @@ bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg streams on an individual packet/page level. -Mutagen works with Python 3.6+ and has no dependencies outside -the Python standard library. +Mutagen works with Python 3.7+ and has no dependencies outside +the Python standard library. (except build dependencies) diff --git a/development/mutagen/mutagen.SlackBuild b/development/mutagen/mutagen.SlackBuild index d5206e01b3..d5ded6efda 100644 --- a/development/mutagen/mutagen.SlackBuild +++ b/development/mutagen/mutagen.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash -# + # Slackware build script for mutagen. -# + # Copyright 2022 fourtysixandtwo # Copyright 2016-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil. # Copyright 2016 Dugan Chen (thedoogster [at] gmail [dot] [com]) @@ -14,21 +14,24 @@ # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# 20221015 46and2: Updated version, changed build process. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mutagen -VERSION=${VERSION:-1.45.1} +SRCNAM=$(echo ${PRGNAM}-release) +VERSION=${VERSION:-1.46.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -67,25 +70,23 @@ else LIBDIRSUFFIX="" fi -SRCVER="release-$VERSION" - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz -mv $PRGNAM-$SRCVER $PRGNAM-$VERSION -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python3 setup.py install --root=$PKG +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl # Move man page(s) to correct location: mv $PKG/usr/share/man $PKG/usr/man diff --git a/development/mutagen/mutagen.info b/development/mutagen/mutagen.info index b135fce7de..cf92e06f62 100644 --- a/development/mutagen/mutagen.info +++ b/development/mutagen/mutagen.info @@ -1,10 +1,10 @@ PRGNAM="mutagen" -VERSION="1.45.1" +VERSION="1.46.0" HOMEPAGE="https://github.com/quodlibet/mutagen" -DOWNLOAD="https://github.com/quodlibet/mutagen/archive/release-1.45.1/mutagen-release-1.45.1.tar.gz" -MD5SUM="408317cb65413381a044c720a548c49e" +DOWNLOAD="https://github.com/quodlibet/mutagen/archive/release-1.46.0/mutagen-release-1.46.0.tar.gz" +MD5SUM="3d362789825eba37068993fcb7108708" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="python3-build python3-installer wheel" MAINTAINER="fourtysixandtwo" EMAIL="fourtysixandtwo@sliderr.net"