diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-07 11:22:32 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-07 11:22:32 +0200 |
| commit | cd027859cf3a15f17aef9ab953a56bd6e7deb049 (patch) | |
| tree | 6f73a9dce54b84479eba4af4321cc318fcffa5e4 | |
| parent | a0464763bbcb40b21f24d415349f8ba32ef53708 (diff) | |
| download | my-slackbuilds-cd027859cf3a15f17aef9ab953a56bd6e7deb049.tar.gz my-slackbuilds-cd027859cf3a15f17aef9ab953a56bd6e7deb049.zip | |
Added: mutagen. Fix man discovery
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | mutagen/README | 15 | ||||
| -rw-r--r-- | mutagen/mutagen.SlackBuild | 108 | ||||
| -rw-r--r-- | mutagen/mutagen.info | 10 | ||||
| -rw-r--r-- | mutagen/slack-desc | 19 |
5 files changed, 153 insertions, 0 deletions
@@ -39,6 +39,7 @@ Each package lives in its own top-level subfolder: | claude-code-bin | ✅ | not tested | ❌ | 2.1.123 | 2.1.123 | | kvantum-qt6 | ✅ | not tested | ❌ | 1.1.6 | 1.1.6 | | gitleaks | ✅ | not tested | ❌ | 8.30.1 | 8.30.1 | +| mutagen | ✅ | not tested | ✅ | 1.47.0 | 1.47.0 | --- diff --git a/mutagen/README b/mutagen/README new file mode 100644 index 0000000..78a4496 --- /dev/null +++ b/mutagen/README @@ -0,0 +1,15 @@ +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 +Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack, OptimFROG, and +AIFF audio files. + +All versions of ID3v2 are supported, and all standard ID3v2.4 frames +are parsed. It can read Xing headers to accurately calculate the +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.7+ and has no dependencies outside +the Python standard library. (except build dependencies) diff --git a/mutagen/mutagen.SlackBuild b/mutagen/mutagen.SlackBuild new file mode 100644 index 0000000..df71bd9 --- /dev/null +++ b/mutagen/mutagen.SlackBuild @@ -0,0 +1,108 @@ +#!/bin/bash + +# Slackware build script for mutagen. + +# 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. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 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. + +# 20221015 46and2: Updated version, changed build process. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=mutagen +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 + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +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} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +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 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: +if [ -d $PKG/usr/share/man ]; then + mv $PKG/usr/share/man $PKG/usr/man + rm -rf $PKG/usr/share +fi + +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 -r COPYING NEWS README.rst docs/ $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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 diff --git a/mutagen/mutagen.info b/mutagen/mutagen.info new file mode 100644 index 0000000..bab8ea1 --- /dev/null +++ b/mutagen/mutagen.info @@ -0,0 +1,10 @@ +PRGNAM="mutagen" +VERSION="1.47.0" +HOMEPAGE="https://github.com/quodlibet/mutagen" +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="python3-build python3-wheel" +MAINTAINER="fourtysixandtwo" +EMAIL="fourtysixandtwo@sliderr.net" diff --git a/mutagen/slack-desc b/mutagen/slack-desc new file mode 100644 index 0000000..b10eff0 --- /dev/null +++ b/mutagen/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +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 +mutagen: Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack, OptimFROG, and +mutagen: AIFF audio files. +mutagen: +mutagen: Homepage: https://github.com/quodlibet/mutagen +mutagen: +mutagen: +mutagen: |
