opencl-headers: Update to latest from git. Fix license

This commit is contained in:
Alexey Pavlov
2020-03-30 08:55:16 +03:00
parent 6f798a657c
commit 13ebfa8199
2 changed files with 8 additions and 34 deletions

View File

@@ -1,20 +0,0 @@
* 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.

View File

@@ -3,25 +3,19 @@
_realname=opencl-headers
pkgbase=mingw-w64-${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
pkgver=2.2.20191024
pkgver=2.2.20200327
pkgrel=1
epoch=2
pkgdesc='OpenCL (Open Computing Language) header files'
arch=('any')
url='https://www.khronos.org/registry/cl/'
license=('custom')
license=('Apache 2.0')
makedepends=(git
"${MINGW_PACKAGE_PREFIX}-python3")
source=('git+https://github.com/KhronosGroup/OpenCL-Headers.git#commit=0d5f18c'
'git+https://github.com/KhronosGroup/OpenCL-CLHPP.git#commit=a9dc80a'
'LICENSE.txt')
"${MINGW_PACKAGE_PREFIX}-python")
source=('git+https://github.com/KhronosGroup/OpenCL-Headers.git#commit=35deb75'
'git+https://github.com/KhronosGroup/OpenCL-CLHPP.git#commit=3871748')
sha256sums=('SKIP'
'SKIP'
'd1059405dce021e0c0a7f7e01b48447e641477e0c14a9bc29983f4202b67c410')
prepare() {
cd "${srcdir}"/OpenCL-CLHPP
}
'SKIP')
package() {
cd "${srcdir}"/OpenCL-Headers/CL
@@ -37,9 +31,9 @@ package() {
install -m 644 ${h} "${pkgdir}${MINGW_PREFIX}/include/CL/"
done
#python3 gen_cl_hpp.py -i input_cl.hpp -o cl.hpp
#python gen_cl_hpp.py -i input_cl.hpp -o cl.hpp
#install -m 644 cl.hpp "${pkgdir}${MINGW_PREFIX}/include/CL/"
#install -m 644 input_cl2.hpp "${pkgdir}${MINGW_PREFIX}/include/CL/cl2.hpp"
install -D -m644 ${srcdir}/LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
install -D -m644 "${srcdir}"/OpenCL-Headers/LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
}