summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2020-06-07 18:50:02 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-06-14 17:45:50 +0700
commitf25999b99b38343cd5fb668c77ac84c0d3376955 (patch)
tree5f7cb3ec4e5690535bb0e884ecd90518982d76c7
parentd86018976810f3e929e6f678a7ea24a460fa8ffd (diff)
downloadslackbuilds-f25999b99b38343cd5fb668c77ac84c0d3376955.tar.gz
libraries/VTK: No qt/plugins to install when QT=no
Signed-off-by: Christoph Willing <chris.willing@linux.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/VTK/VTK.SlackBuild10
1 files 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 \