From f25999b99b38343cd5fb668c77ac84c0d3376955 Mon Sep 17 00:00:00 2001 From: Christoph Willing Date: Sun, 7 Jun 2020 18:50:02 +1000 Subject: [PATCH] libraries/VTK: No qt/plugins to install when QT=no Signed-off-by: Christoph Willing Signed-off-by: Willy Sudiarto Raharjo --- libraries/VTK/VTK.SlackBuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libraries/VTK/VTK.SlackBuild b/libraries/VTK/VTK.SlackBuild index 4f23ed37ab..ae29a67c07 100644 --- a/libraries/VTK/VTK.SlackBuild +++ b/libraries/VTK/VTK.SlackBuild @@ -147,10 +147,12 @@ cd .. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/qt -mv \ - $PKG/usr/plugins/ \ - $PKG/usr/lib${LIBDIRSUFFIX}/qt +[ -d $PKG/usr/plugins ] && { + mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/qt + mv \ + $PKG/usr/plugins/ \ + $PKG/usr/lib${LIBDIRSUFFIX}/qt +} mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \