multimedia/picard-plugins: Version bump to 5a18c78

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Jeremy Hansen 2023-10-13 16:47:00 -07:00 committed by Willy Sudiarto Raharjo
parent 0363ee8893
commit 2780ca98b6
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 25 additions and 31 deletions

View File

@ -1,5 +1,4 @@
MusicBrainz Picard Plugins.
MusicBrainz Picard Plugins
Note: The BPM plugin is optional and requires additional
dependencies. To enable specify BPM=yes when building and you will
need to install both numpy3 and aubio slackbuilds.
aubio and python3-numpy are optional autodetected dependencies for the
BPM plugin. The BPM plugin will not be installed without them.

View File

@ -28,9 +28,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=picard-plugins
DSTNAM=picard
VERSION=${VERSION:-9509b80}
COMMIT=${COMMIT:-9509b800ee53a7b41ac776183edb6ffd0948896e}
VERSION=${VERSION:-5a18c78}
COMMIT=${COMMIT:-5a18c78d6a02396947729918b4971741d82e5c21}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -52,16 +51,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
@ -77,17 +66,23 @@ 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 {} \;
PYTHONDIR=$(python3 -c "import sys, os; print(os.path.join('/usr/lib${LIBDIRSUFFIX}', 'python%s' % sys.version[:3], 'site-packages'))")
mkdir -p $PKG/$PYTHONDIR/$DSTNAM/plugins
(
cd plugins
if [ "${BPM:-no}" = "no" ]; then
rm -rf bpm
fi
rm -rf haikuattrs
find . -maxdepth 2 -name '__init__.py' -printf '%h\n'|xargs mv -t $PKG/$PYTHONDIR/$DSTNAM/plugins/
cp -a */* $PKG/$PYTHONDIR/$DSTNAM/plugins/
)
PYTHONDIR=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
PLUGINDIR=$PKG/$PYTHONDIR/picard/plugins
mkdir -p $PLUGINDIR
# Delete haikuattrs plugin as it is only for the Haiku operating system
rm -rf plugins/haikuattrs
# Move over all directories containing __init__.py
find plugins/ -maxdepth 2 -name '__init__.py' -printf '%h\n' | xargs mv -t $PLUGINDIR
# Copy over all the remaining .py files
cp plugins/*/*.py $PLUGINDIR
# Delete bpm plugin if aubio & python3-numpy dependencies are not available
if ! python3 -c "import aubio; import numpy"; then
rm -rf $PLUGINDIR/bpm
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION

View File

@ -1,8 +1,8 @@
PRGNAM="picard-plugins"
VERSION="9509b80"
VERSION="5a18c78"
HOMEPAGE="https://picard.musicbrainz.org/plugins/"
DOWNLOAD="https://github.com/metabrainz/picard-plugins/archive/9509b80/picard-plugins-9509b800ee53a7b41ac776183edb6ffd0948896e.tar.gz"
MD5SUM="638b985314f8fa6a3847215a986f350f"
DOWNLOAD="https://github.com/metabrainz/picard-plugins/archive/5a18c78/picard-plugins-5a18c78d6a02396947729918b4971741d82e5c21.tar.gz"
MD5SUM="0dd80e02093c554c352ca88bca5cfd33"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="picard"