aboutsummaryrefslogtreecommitdiff
path: root/development/opencl-headers/opencl-headers.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-12-22 12:29:07 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-23 09:16:50 -0500
commit33421d6072894173855d0693f3ea485cea8d80f6 (patch)
tree477c5423e46632f70a0a89640ce8c2d13e35cd52 /development/opencl-headers/opencl-headers.SlackBuild
parent1d9fc17f557fbfe7cfb2013858b11031b9028ffe (diff)
development/opencl-headers: Updated for version 1.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/opencl-headers/opencl-headers.SlackBuild')
-rw-r--r--development/opencl-headers/opencl-headers.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/development/opencl-headers/opencl-headers.SlackBuild b/development/opencl-headers/opencl-headers.SlackBuild
index e925f4e9cc978..ec154c2e84afd 100644
--- a/development/opencl-headers/opencl-headers.SlackBuild
+++ b/development/opencl-headers/opencl-headers.SlackBuild
@@ -24,9 +24,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=opencl-headers
-VERSION=${VERSION:-1.2}
+VERSION=${VERSION:-1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
ARCH=noarch
CWD=$(pwd)
@@ -37,8 +38,8 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
-mkdir -p $TMP $PKG/usr/{doc,include} $OUTPUT
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -C $PKG/usr/include/
+mkdir -p $TMP $PKG/usr/include/CL $OUTPUT
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -C $PKG/usr/include/CL/
chown -R root.root $PKG/usr/include/CL/*
find $PKG/usr/include/CL \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -46,7 +47,7 @@ find $PKG/usr/include/CL \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-mv $PKG/usr/include/CL/docs $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install