blob: 841d72f8bb1d1d67509d46c4364de312c1a86401 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=opencl-icd-loader
pkgver=2024.10.24
pkgrel=1
pkgdesc="The OpenCL ICD Loader project."
arch=('x86_64')
url="https://github.com/KhronosGroup/OpenCL-ICD-Loader"
license=('Apache-2.0')
depends=('glibc')
makedepends=('cmake' 'opencl-headers')
optdepends=('opencl-driver: packaged opencl driver')
provides=('libOpenCL.so=1' 'ocl-icd')
conflicts=('ocl-icd')
source=("OpenCL-ICD-Loader-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('95f2f0cda375b13d2760290df044ebea9c6ff954a7d7faa0867422442c9174dc')
build() {
cmake -B build -S "OpenCL-ICD-Loader-$pkgver" \
-DCMAKE_BUILD_TYPE='RelWithDebInfo' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|