OCaml 4.14.0 rebuild
[arch-packages.git] / opencl-headers / trunk / PKGBUILD
blob5b70766c4136d1a659a10edf949309b763ec18c8
1 # Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
2 # Contributor: Sylvain HENRY <hsyl20@yahoo.fr>
4 pkgname=opencl-headers
5 pkgver=2022.05.18
6 pkgrel=1
7 epoch=2
8 pkgdesc='OpenCL (Open Computing Language) header files'
9 arch=('any')
10 url='https://www.khronos.org/registry/cl/'
11 license=('custom')
12 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/OpenCL-Headers/archive/v${pkgver}.tar.gz")
13 sha256sums=('88a1177853b279eaf574e2aafad26a84be1a6f615ab1b00c20d5af2ace95c42e')
14 optdepends=('opencl-clhpp: C++ support')
16 package() {
17   cd "${srcdir}"/OpenCL-Headers*/CL
19   install -dm755 "${pkgdir}"/usr/include/CL
21   for h in *.h; do
22     install -m 644 ${h} "${pkgdir}"/usr/include/CL/
23   done
25   # remove useless headers
26   rm "${pkgdir}"/usr/include/CL/{cl_d3d,cl_dx9}*.h
28   install -D -m644 ../LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE