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/picard-plugins/picard-plugins.SlackBuild | |
parent | 0363ee889300d73587383e3fdfed24e8881ba250 (diff) | |
download | slackbuilds-2780ca98b6d013b3d02a5dc4a6fceb32873585d7.tar.gz slackbuilds-2780ca98b6d013b3d02a5dc4a6fceb32873585d7.tar.xz |
multimedia/picard-plugins: Version bump to 5a18c78
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/picard-plugins/picard-plugins.SlackBuild')
-rw-r--r-- | multimedia/picard-plugins/picard-plugins.SlackBuild | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/multimedia/picard-plugins/picard-plugins.SlackBuild b/multimedia/picard-plugins/picard-plugins.SlackBuild index 92ef39d122..e3362cece2 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 |