desktop/opencl-headers/PKGBUILD

36 lines
999 B
Bash
Raw Normal View History

pkgname=opencl-headers
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'
arch=('any')
url='https://www.khronos.org/registry/cl/'
2015-10-20 17:28:38 +08:00
license=('custom')
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')
sha1sums=('SKIP'
'SKIP'
2015-10-20 17:28:38 +08:00
'98abb35b2eca82d0fc19db6d28fcc7bd20be0655')
package() {
cd "${srcdir}"/OpenCL-Headers/opencl22/CL
2015-10-20 17:28:38 +08:00
install -dm755 "${pkgdir}"/usr/include/CL
2015-10-20 17:28:38 +08:00
for h in *.h; do
install -m 644 ${h} "${pkgdir}"/usr/include/CL/
done
2015-10-20 17:28:38 +08:00
# remove useless headers
rm "${pkgdir}"/usr/include/CL/{cl_d3d,cl_dx9}*.h
2015-10-20 17:28:38 +08:00
cd "${srcdir}"/OpenCL-CLHPP
2015-10-20 17:28:38 +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
install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}