summaryrefslogtreecommitdiff
path: root/libraries/opencv/opencv.SlackBuild
diff options
context:
space:
mode:
authorM.Dinslage <daedra1980@gmail.com>2011-10-05 06:44:33 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-10-11 21:20:28 -0500
commit1add2af03796f6bc2271d891d997aa006b16d1e7 (patch)
treef139f1a2ef4a5ddac54147fef27842644e8a1eda /libraries/opencv/opencv.SlackBuild
parentf097f5393482b8fed448964fdcd3931fe8c4d0ac (diff)
downloadslackbuilds-1add2af03796f6bc2271d891d997aa006b16d1e7.tar.gz
libraries/opencv: Updated for version 2.3.1a.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'libraries/opencv/opencv.SlackBuild')
-rw-r--r--libraries/opencv/opencv.SlackBuild9
1 files changed, 4 insertions, 5 deletions
diff --git a/libraries/opencv/opencv.SlackBuild b/libraries/opencv/opencv.SlackBuild
index fdb800d220..dec8489bf5 100644
--- a/libraries/opencv/opencv.SlackBuild
+++ b/libraries/opencv/opencv.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=opencv
SRCNAM=OpenCV
-VERSION=${VERSION:-2.3.0}
+VERSION=${VERSION:-2.3.1a}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -44,7 +44,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
-cd $SRCNAM-$VERSION
+cd $SRCNAM-2.3.1
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -54,7 +54,7 @@ find . \
# Honor LIB_SUFFIX
# rewritten for slackware
-patch -p1 < $CWD/libopencv-2.3.0-libdir.patch
+patch -p1 < $CWD/libopencv-2.3.1a-libdir.patch
mkdir -p build
cd build
@@ -77,8 +77,7 @@ cd -
find $PKG | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-mkdir $PKG/usr/doc
-mv $PKG/usr/share/$PRGNAM/doc $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README doc/*.pdf $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild