summaryrefslogtreecommitdiff
path: root/development/opencl-headers/opencl-headers.SlackBuild
diff options
context:
space:
mode:
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 e925f4e9cc..ec154c2e84 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