blob: 793fd47fbe5ff0ccfc138b154175b72b5f8d21fd (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Sylvain HENRY <hsyl20@yahoo.fr>
_android_arch=aarch64
pkgname=android-${_android_arch}-opencl-headers
pkgver=2024.05.08
pkgrel=1
pkgdesc="OpenCL (Open Computing Language) header files (Android ${_android_arch})"
arch=('any')
url='https://www.khronos.org/registry/cl/'
license=('custom')
groups=('android-opencl-headers')
depeds=('android-ndk')
makedepends=('android-cmake'
'python')
optdepends=("android-${_android_arch}-opencl-clhpp: C++ support")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/KhronosGroup/OpenCL-Headers/archive/v${pkgver}.tar.gz")
md5sums=('56d28bdc7957be155aa81114ce504794')
build() {
cd "${srcdir}/OpenCL-Headers-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-cmake \
-S . \
-B build \
-Wno-dev
make -C build $MAKEFLAGS
}
package() {
cd "${srcdir}/OpenCL-Headers-${pkgver}"
source android-env ${_android_arch}
make -C build DESTDIR="$pkgdir" install
}
|