aboutsummaryrefslogtreecommitdiffstats
path: root/community/opencl-headers/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/opencl-headers/APKBUILD')
-rw-r--r--community/opencl-headers/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/opencl-headers/APKBUILD b/community/opencl-headers/APKBUILD
new file mode 100644
index 0000000000..b23a78b1e9
--- /dev/null
+++ b/community/opencl-headers/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=opencl-headers
+pkgver=2.1
+_pkgreal=OpenCL-Headers
+pkgrel=0
+pkgdesc="OpenCL (Open Computing Language) header files"
+url="https://www.khronos.org/registry/cl/"
+arch="noarch"
+license="custom"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/itoffshore/OpenCL-Headers/archive/$pkgver.tar.gz
+ $pkgname-$pkgver-LICENSE::https://github.com/KhronosGroup/OpenCL-ICD-Loader/raw/master/LICENSE.txt
+ "
+
+builddir="$srcdir"/$_pkgreal-$pkgver
+build() {
+ return 0
+}
+
+package() {
+ cd "$builddir"
+ mkdir -p "$pkgdir"/usr/include/CL
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname
+
+ for h in $(ls -1 *.h); do
+ install -m 644 $h "$pkgdir"/usr/include/CL/
+ done
+
+ install -D -m644 ../$pkgname-$pkgver-LICENSE "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
+
+md5sums="04a5b1a34d0ce47520f08625d97ccfea opencl-headers-2.1.tar.gz
+ca6d58ec304a1ce6df094b52ca60c5ce opencl-headers-2.1-LICENSE"
+sha256sums="5d80fe3d9324b635e09d8891297c3c67e30635727d8dee99b9f3cefa73bf762e opencl-headers-2.1.tar.gz
+7c265341628a5f79ead4d8e00268649e16f2cb905ee21d713a2a0189cbd200b8 opencl-headers-2.1-LICENSE"
+sha512sums="0c475a6d44877289792ef055ed83df82c846e3c56df8dd1d3903965d6f817d99a7eb29b752be435f75485584036cb90e79e3c2035e2ddc99e04f30c0ada97edd opencl-headers-2.1.tar.gz
+d4bf5d67de13d6c67c935e4ada64469fba442d278a0469785d3d4221c94dec6b342ae703a30bd8b1510938d98afd9fb1813f3a14706037fb0f811466076154fb opencl-headers-2.1-LICENSE"