development/mutagen: Updated for version 1.46.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2022-10-18 18:20:58 +01:00 committed by Willy Sudiarto Raharjo
parent 621f40b970
commit 4901e007ab
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 31 additions and 30 deletions

View file

@ -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)

View file

@ -1,7 +1,7 @@
#!/bin/bash
#
# Slackware build script for mutagen.
#
# Copyright 2022 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# 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

View file

@ -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"