blob: 5db8bea8da3169f3bc043abd700bd3159ba73eb9 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
pkgname=khronos-ocl-icd-git
pkgver=2020.12.18.7.g9b5e384
pkgrel=1
pkgdesc="Khronos Group OpenCL 1.2 installable client driver (ICD) loader. (GIT Version)"
arch=('x86_64')
url="http://www.khronos.org/registry/cl"
license=('apache')
makedepends=('git'
'cmake'
'mesa'
'opencl-headers-git'
)
depends=('glibc')
provides=('libcl'
'opencl-icd-loader'
'ocl-icd'
)
conflicts=('libcl'
'opencl-icd-loader'
'ocl-icd'
)
source=('ocl::git+https://github.com/KhronosGroup/OpenCL-ICD-Loader.git'
'115.diff' # reference rebased: 'https://patch-diff.githubusercontent.com/raw/KhronosGroup/OpenCL-ICD-Loader/pull/115.diff'
)
sha256sums=('SKIP'
'72345b554f86abbd99296e0fcd0781b886ec923fa8ea4b99142e2867a0682492'
)
pkgver() {
cd ocl
echo "$(git describe --long --tags | tr - . | tr -d v)"
}
prepare() {
mkdir -p build
patch -d ocl -Np1 -i "${srcdir}/115.diff"
}
build() {
cd build
cmake ../ocl \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=OFF
make
}
package() {
make -C build DESTDIR="${pkgdir}" install
install -Dm644 ocl/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|