diff options
author | sL1pKn07 | 2020-03-13 21:36:17 +0100 |
---|---|---|
committer | sL1pKn07 | 2020-03-13 21:36:17 +0100 |
commit | b597341682ca745f6eeb9f84a1c3f76711eefb92 (patch) | |
tree | 16df83503638679d5cf5a406bdf63095cf26808f | |
download | aur-b597341682ca745f6eeb9f84a1c3f76711eefb92.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cdd605406cbb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = opencl-headers-git + pkgdesc = OpenCL (Open Computing Language) header files + pkgver = v2020.03.13.0.g9824efd + pkgrel = 1 + url = https://www.khronos.org/registry/cl/ + arch = any + license = custom:Khronos + makedepends = git + makedepends = python + provides = opencl-headers + conflicts = opencl-headers + source = git+https://github.com/KhronosGroup/OpenCL-Headers.git + source = git+https://github.com/KhronosGroup/OpenCL-CLHPP.git + sha256sums = SKIP + sha256sums = SKIP + +pkgname = opencl-headers-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f16b5cfdc13f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=opencl-headers-git +pkgver=v2020.03.13.0.g9824efd +pkgrel=1 +pkgdesc='OpenCL (Open Computing Language) header files' +arch=('any') +url='https://www.khronos.org/registry/cl/' +license=('custom:Khronos') +makedepends=('git' + 'python' + ) +provides=('opencl-headers') +conflicts=('opencl-headers') +source=('git+https://github.com/KhronosGroup/OpenCL-Headers.git' + 'git+https://github.com/KhronosGroup/OpenCL-CLHPP.git' + ) +sha256sums=('SKIP' + 'SKIP' + ) + +pkgver() { + cd OpenCL-Headers + echo "$(git describe --long --tags | tr - .)" +} + +package() { + cd "${srcdir}/OpenCL-Headers" + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + for i in $(find CL -type f); do + install -Dm644 ${i} "${pkgdir}/usr/include/${i}" + done + + # remove useless headers + rm "${pkgdir}/usr/include/CL/"{cl_d3d,cl_dx9}*.h + + cd "${srcdir}/OpenCL-CLHPP" + + python gen_cl_hpp.py -i input_cl.hpp -o "${pkgdir}/usr/include/CL/cl.hpp" + install -Dm644 include/CL/cl2.hpp "${pkgdir}/usr/include/CL/cl2.hpp" +} |