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

Felix Yan felixonmars at archlinux.org
Sat May 16 10:13:17 UTC 2020


    Date: Saturday, May 16, 2020 @ 10:13:17
  Author: felixonmars
Revision: 384042

archrelease: copy trunk to staging-any

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

-------------+
 LICENSE.txt |   20 ++++++++++++++++++++
 PKGBUILD    |   39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

Copied: opencl-headers/repos/staging-any/LICENSE.txt (from rev 384041, opencl-headers/trunk/LICENSE.txt)
===================================================================
--- staging-any/LICENSE.txt	                        (rev 0)
+++ staging-any/LICENSE.txt	2020-05-16 10:13:17 UTC (rev 384042)
@@ -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/staging-any/PKGBUILD (from rev 384041, opencl-headers/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-05-16 10:13:17 UTC (rev 384042)
@@ -0,0 +1,39 @@
+# Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Sylvain HENRY <hsyl20 at yahoo.fr>
+
+pkgname=opencl-headers
+pkgver=2.2.20170516 
+pkgrel=3
+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=ec2566b'
+        'git+https://github.com/KhronosGroup/OpenCL-CLHPP.git#commit=e250e2e'
+        'LICENSE.txt')
+sha256sums=('SKIP'
+            'SKIP'
+            'd1059405dce021e0c0a7f7e01b48447e641477e0c14a9bc29983f4202b67c410')
+
+package() {
+  cd "${srcdir}"/OpenCL-Headers/opencl22/CL
+
+  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