diff options
Diffstat (limited to 'development/mutagen')
-rw-r--r-- | development/mutagen/README | 11 | ||||
-rw-r--r-- | development/mutagen/mutagen.SlackBuild | 77 | ||||
-rw-r--r-- | development/mutagen/mutagen.info | 12 | ||||
-rw-r--r-- | development/mutagen/slack-desc | 2 |
4 files changed, 51 insertions, 51 deletions
diff --git a/development/mutagen/README b/development/mutagen/README index 9356e2d898..78a4496dec 100644 --- a/development/mutagen/README +++ b/development/mutagen/README @@ -1,4 +1,4 @@ -mutagen (Python 2/3 module for handling audio metadata) +mutagen (Python 3 module for handling audio metadata) Mutagen is a Python module to handle audio metadata. It supports ASF, FLAC, MP4, Monkey's Audio, MP3, Musepack, Ogg Opus, Ogg FLAC, Ogg @@ -11,10 +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 2.7, 3.3+ and has no dependencies outside -the Python standard library. - -NOTE: to build mutagen with python3 run the slackbuild with option -PYTHON3=yes. - - # PYTHON3=yes ./mutagen.SlackBuild +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 346ff70570..5b7e28665a 100644 --- a/development/mutagen/mutagen.SlackBuild +++ b/development/mutagen/mutagen.SlackBuild @@ -1,8 +1,9 @@ -#!/bin/sh -# +#!/bin/bash + # Slackware build script for mutagen. -# -# Copyright 2016-2019 Edinaldo P. Silva, Rio de Janeiro, Brazil. + +# Copyright 2022-23 fourtysixandtwo <fourtysixandtwo@sliderr.net> +# Copyright 2016-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil. # Copyright 2016 Dugan Chen (thedoogster [at] gmail [dot] [com]) # Copyright 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com> # All rights reserved. @@ -13,21 +14,27 @@ # 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.43.0} +SRCNAM=$(echo ${PRGNAM}-release) +VERSION=${VERSION:-1.47.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +44,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -51,37 +62,31 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" 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 {} \; - -python setup.py build -python setup.py install --root $PKG - -# Build mutagen with python3. Default is no. -if [ "${PYTHON3:-no}" == "yes" ]; then - python3 setup.py build - python3 setup.py install --root=$PKG -fi + \( -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 -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 @@ -98,4 +103,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/mutagen/mutagen.info b/development/mutagen/mutagen.info index db5233ace2..bab8ea168e 100644 --- a/development/mutagen/mutagen.info +++ b/development/mutagen/mutagen.info @@ -1,10 +1,10 @@ PRGNAM="mutagen" -VERSION="1.43.0" +VERSION="1.47.0" HOMEPAGE="https://github.com/quodlibet/mutagen" -DOWNLOAD="https://github.com/quodlibet/mutagen/archive/release-1.43.0/mutagen-release-1.43.0.tar.gz" -MD5SUM="04111a3df37e5b7f0f3dcffdb4b3ad70" +DOWNLOAD="https://github.com/quodlibet/mutagen/archive/release-1.47.0/mutagen-release-1.47.0.tar.gz" +MD5SUM="b4a74aed4edce5414e147b86d5e517e8" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Edinaldo P. Silva" -EMAIL="edps.mundognu@gmail.com" +REQUIRES="python3-build python3-wheel" +MAINTAINER="fourtysixandtwo" +EMAIL="fourtysixandtwo@sliderr.net" diff --git a/development/mutagen/slack-desc b/development/mutagen/slack-desc index 4513a7abc2..b10eff0271 100644 --- a/development/mutagen/slack-desc +++ b/development/mutagen/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -mutagen: mutagen (Python 2/3 module for handling audio metadata) +mutagen: mutagen (Python 3 module for handling audio metadata) mutagen: mutagen: Mutagen is a Python module to handle audio metadata. It supports ASF, mutagen: FLAC, MP4, Monkey's Audio, MP3, Musepack, Ogg Opus, Ogg FLAC, Ogg |