[arch-commits] Commit in opencl-headers/repos (3 files)

Laurent Carlier lcarlier at archlinux.org
Mon Dec 19 22:07:10 UTC 2016


    Date: Monday, December 19, 2016 @ 22:07:09
  Author: lcarlier
Revision: 284344

archrelease: copy trunk to testing-any

Added:
  opencl-headers/repos/testing-any/
  opencl-headers/repos/testing-any/LICENSE.txt
    (from rev 284343, opencl-headers/trunk/LICENSE.txt)
  opencl-headers/repos/testing-any/PKGBUILD
    (from rev 284343, opencl-headers/trunk/PKGBUILD)

-------------+
 LICENSE.txt |   20 ++++++++++++++++++++
 PKGBUILD    |   40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

Copied: opencl-headers/repos/testing-any/LICENSE.txt (from rev 284343, opencl-headers/trunk/LICENSE.txt)
===================================================================
--- testing-any/LICENSE.txt	                        (rev 0)
+++ testing-any/LICENSE.txt	2016-12-19 22:07:09 UTC (rev 284344)
@@ -0,0 +1,20 @@
+ * Copyright (c) 2008-2010 The Khronos Group Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and/or associated documentation files (the
+ * "Materials"), to deal in the Materials without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Materials, and to
+ * permit persons to whom the Materials are furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Materials.
+ *
+ * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.

Copied: opencl-headers/repos/testing-any/PKGBUILD (from rev 284343, opencl-headers/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2016-12-19 22:07:09 UTC (rev 284344)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Sylvain HENRY <hsyl20 at yahoo.fr>
+
+pkgname=opencl-headers
+pkgver=2.1.20161129 # date of the commit, branch 2.1
+pkgrel=1
+epoch=2
+pkgdesc='OpenCL (Open Computing Language) header files'
+arch=('any')
+url='https://www.khronos.org/registry/cl/'
+license=('custom')
+makedepends=(git python)
+source=('git+https://github.com/KhronosGroup/OpenCL-Headers.git#commit=abb2958'
+        'git+https://github.com/KhronosGroup/OpenCL-CLHPP.git#commit=d54d52c'
+        'LICENSE.txt')
+sha256sums=('SKIP'
+            'SKIP'
+            'd1059405dce021e0c0a7f7e01b48447e641477e0c14a9bc29983f4202b67c410')
+
+package() {
+  cd "${srcdir}"/OpenCL-Headers
+
+  install -dm755 "${pkgdir}"/usr/include/CL
+
+  for h in *.h; do
+    install -m 644 ${h} "${pkgdir}"/usr/include/CL/
+  done
+
+  # remove useless headers
+  rm "${pkgdir}"/usr/include/CL/{cl_d3d,cl_dx9}*.h
+
+  cd "${srcdir}"/OpenCL-CLHPP
+
+  python gen_cl_hpp.py -i input_cl.hpp -o cl.hpp
+  install -m 644 cl.hpp "${pkgdir}"/usr/include/CL/
+  install -m 644 input_cl2.hpp "${pkgdir}"/usr/include/CL/cl2.hpp
+
+  install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list