diff options
author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2023-10-13 16:47:00 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-10-14 09:08:40 +0700 |
commit | 2780ca98b6d013b3d02a5dc4a6fceb32873585d7 (patch) | |
tree | c6ea2a225b34d7f9db5cc7f8e04cdfc2eb4ceedb /multimedia | |
parent | 0363ee889300d73587383e3fdfed24e8881ba250 (diff) |
multimedia/picard-plugins: Version bump to 5a18c78
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/picard-plugins/README | 7 | ||||
-rw-r--r-- | multimedia/picard-plugins/picard-plugins.SlackBuild | 43 | ||||
-rw-r--r-- | multimedia/picard-plugins/picard-plugins.info | 6 |
3 files changed, 25 insertions, 31 deletions
diff --git a/multimedia/picard-plugins/README b/multimedia/picard-plugins/README index af730d6ad554..9e0322372de1 100644 --- a/multimedia/picard-plugins/README +++ b/multimedia/picard-plugins/README @@ -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. diff --git a/multimedia/picard-plugins/picard-plugins.SlackBuild b/multimedia/picard-plugins/picard-plugins.SlackBuild index 92ef39d12257..e3362cece2d7 100644 --- a/multimedia/picard-plugins/picard-plugins.SlackBuild +++ b/multimedia/picard-plugins/picard-plugins.SlackBuild @@ -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 diff --git a/multimedia/picard-plugins/picard-plugins.info b/multimedia/picard-plugins/picard-plugins.info index 9a62d637912a..e878bb5eabbc 100644 --- a/multimedia/picard-plugins/picard-plugins.info +++ b/multimedia/picard-plugins/picard-plugins.info @@ -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" |