db-move: moved adwaita-icon-theme from [testing] to [extra] (any)
[arch-packages.git] / opencl-headers / repos / extra-any / PKGBUILD
blob22c067ba10144f460136ba712b46fedcf786bc56
1 # Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
2 # Contributor: Sylvain HENRY <hsyl20@yahoo.fr>
4 pkgname=opencl-headers
5 pkgver=2022.09.30
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=('0ae857ecb28af95a420c800b21ed2d0f437503e104f841ab8db249df5f4fbe5c')
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