blob: 747c4bf24027707ff88f06d0e86a86caff2df148 (
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=armv7a-eabi
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
}
|