# Contributor: Leon Marz # Maintainer: Leon Marz pkgname=opencl pkgver=2023.04.17 pkgrel=1 pkgdesc="OpenCL ICD Loader" url="https://khronos.org/opencl" arch="all" license="Apache-2.0" makedepends="cmake samurai" depends_dev="$pkgname-headers" subpackages="$pkgname-headers:headers:noarch $pkgname-layer-info $pkgname-dev" provides="opencl-icd-loader=$pkgver-r$pkgrel" source="https://github.com/KhronosGroup/OpenCL-SDK/releases/download/v$pkgver/OpenCL-SDK-v$pkgver-Source.tar.gz" options="!check" # tests are not functioning correctly builddir="$srcdir/OpenCL-SDK-v$pkgver-Source" prepare() { default_prepare # build artifacts are somehow included... rm -rf "$builddir/build" } build() { cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_DATADIR=lib \ -DCMAKE_BUILD_TYPE=None \ -DOPENCL_SDK_BUILD_SAMPLES=OFF cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } headers() { pkgdesc="OpenCL development headers" amove usr/include } info() { pkgdesc="OpenCL Layer Info tool" amove usr/bin/cllayerinfo } sha512sums=" 9cbc9865b04c2e9d69a890109f9484f0d14b9a0f61d5cb9c209d3265d84dfaa04c6b8ab481a753347d0f0e651ace9ca7b7a7db7f907a007019103b71c536c520 OpenCL-SDK-v2023.04.17-Source.tar.gz "