2010-11-15 18:32:42 +08:00
|
|
|
pkgname=opencl-headers
|
2018-11-05 23:04:44 +08:00
|
|
|
pkgver=2.2.20170516
|
2012-01-05 22:25:01 +08:00
|
|
|
pkgrel=1
|
2015-10-20 17:28:38 +08:00
|
|
|
pkgdesc='OpenCL (Open Computing Language) header files'
|
2010-11-15 18:32:42 +08:00
|
|
|
arch=('any')
|
2018-11-05 23:04:44 +08:00
|
|
|
url='https://www.khronos.org/registry/cl/'
|
2015-10-20 17:28:38 +08:00
|
|
|
license=('custom')
|
2018-11-05 23:04:44 +08:00
|
|
|
source=('git+https://github.com/KhronosGroup/OpenCL-Headers.git#commit=ec2566b'
|
|
|
|
'git+https://github.com/KhronosGroup/OpenCL-CLHPP.git#commit=e250e2e'
|
2015-10-20 17:28:38 +08:00
|
|
|
'LICENSE.txt')
|
2018-11-05 23:04:44 +08:00
|
|
|
sha1sums=('SKIP'
|
|
|
|
'SKIP'
|
2015-10-20 17:28:38 +08:00
|
|
|
'98abb35b2eca82d0fc19db6d28fcc7bd20be0655')
|
|
|
|
|
2018-11-05 23:04:44 +08:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}"/OpenCL-Headers/opencl22/CL
|
2015-10-20 17:28:38 +08:00
|
|
|
|
2018-11-05 23:04:44 +08:00
|
|
|
install -dm755 "${pkgdir}"/usr/include/CL
|
2015-10-20 17:28:38 +08:00
|
|
|
|
2018-11-05 23:04:44 +08:00
|
|
|
for h in *.h; do
|
|
|
|
install -m 644 ${h} "${pkgdir}"/usr/include/CL/
|
|
|
|
done
|
2015-10-20 17:28:38 +08:00
|
|
|
|
2018-11-05 23:04:44 +08:00
|
|
|
# remove useless headers
|
|
|
|
rm "${pkgdir}"/usr/include/CL/{cl_d3d,cl_dx9}*.h
|
2015-10-20 17:28:38 +08:00
|
|
|
|
2018-11-05 23:04:44 +08:00
|
|
|
cd "${srcdir}"/OpenCL-CLHPP
|
2015-10-20 17:28:38 +08:00
|
|
|
|
2018-11-05 23:04:44 +08:00
|
|
|
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
|
2015-10-20 17:28:38 +08:00
|
|
|
|
2018-11-05 23:04:44 +08:00
|
|
|
install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
2010-11-15 18:32:42 +08:00
|
|
|
}
|
2018-11-05 23:04:44 +08:00
|
|
|
|