summaryrefslogtreecommitdiff
path: root/libraries/opencv/opencv.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/opencv/opencv.SlackBuild')
-rw-r--r--libraries/opencv/opencv.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/libraries/opencv/opencv.SlackBuild b/libraries/opencv/opencv.SlackBuild
index c1e8c716f7..8aef68edb5 100644
--- a/libraries/opencv/opencv.SlackBuild
+++ b/libraries/opencv/opencv.SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=opencv
PRGNAM2=opencv_contrib
VERSION=${VERSION:-3.1.0}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -118,8 +118,10 @@ 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
-cp -a samples/java* samples/opencl* samples/opengl* $PKG/usr/share/opencv/samples
-chmod -R 0755 $PKG/usr/share/opencv/samples/{python*,opencl*,opengl*}
+[ "${CVDOCS:-yes}" = "yes" ] && {
+ cp -a samples/java* samples/opencl* samples/opengl* $PKG/usr/share/opencv/samples
+ chmod -R 0755 $PKG/usr/share/opencv/samples
+}
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION