[arch-commits] Commit in opencl-headers/trunk (PKGBUILD)
Laurent Carlier
lcarlier at archlinux.org
Mon Dec 19 22:07:05 UTC 2016
Date: Monday, December 19, 2016 @ 22:07:04
Author: lcarlier
Revision: 284343
upgpkg: opencl-headers 2:2.1.20161129-1
update to khronos git repos
Modified:
opencl-headers/trunk/PKGBUILD
----------+
PKGBUILD | 56 +++++++++++++++++++++-----------------------------------
1 file changed, 21 insertions(+), 35 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-12-19 21:03:36 UTC (rev 284342)
+++ PKGBUILD 2016-12-19 22:07:04 UTC (rev 284343)
@@ -3,52 +3,38 @@
# Contributor: Sylvain HENRY <hsyl20 at yahoo.fr>
pkgname=opencl-headers
-pkgver=2.1.20151224
-_clbasever=2.1
+pkgver=2.1.20161129 # date of the commit, branch 2.1
pkgrel=1
epoch=2
pkgdesc='OpenCL (Open Computing Language) header files'
arch=('any')
-url='http://www.khronos.org/registry/cl/'
+url='https://www.khronos.org/registry/cl/'
license=('custom')
-source=("https://sources.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.src.tar.xz"
+makedepends=(git python)
+source=('git+https://github.com/KhronosGroup/OpenCL-Headers.git#commit=abb2958'
+ 'git+https://github.com/KhronosGroup/OpenCL-CLHPP.git#commit=d54d52c'
'LICENSE.txt')
-_headers=("http://www.khronos.org/registry/cl/api/${_clbasever}/opencl.h"
- "http://www.khronos.org/registry/cl/api/${_clbasever}/cl_platform.h"
- "http://www.khronos.org/registry/cl/api/${_clbasever}/cl.h"
- "http://www.khronos.org/registry/cl/api/${_clbasever}/cl_ext.h"
- "http://www.khronos.org/registry/cl/api/${_clbasever}/cl_egl.h"
- "http://www.khronos.org/registry/cl/api/${_clbasever}/cl_gl.h"
- "http://www.khronos.org/registry/cl/api/${_clbasever}/cl_gl_ext.h"
- "http://www.khronos.org/registry/cl/api/${_clbasever}/cl2.hpp"
- "http://www.khronos.org/registry/cl/api/${_clbasever}/cl.hpp") # compatibility for OCL 1.2
-sha1sums=('6fae079bd2b02b1ea5312f61ff817c8f541ceb4f'
- '98abb35b2eca82d0fc19db6d28fcc7bd20be0655')
+sha256sums=('SKIP'
+ 'SKIP'
+ 'd1059405dce021e0c0a7f7e01b48447e641477e0c14a9bc29983f4202b67c410')
-# source PKGBUILD && mksource
-mksource() {
- cd "${srcdir}"
- _dirname=${pkgname}-${pkgver}
- mkdir ${_dirname}
+package() {
+ cd "${srcdir}"/OpenCL-Headers
- pushd ${_dirname}
- for _h in ${_headers[@]}; do
- wget ${_h}
- done
- popd
+ install -dm755 "${pkgdir}"/usr/include/CL
- tar -cJv --exclude=CVS -f ${_dirname}.src.tar.xz ${_dirname}
- rm -rf ${_dirname}
-}
+ for h in *.h; do
+ install -m 644 ${h} "${pkgdir}"/usr/include/CL/
+ done
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ # remove useless headers
+ rm "${pkgdir}"/usr/include/CL/{cl_d3d,cl_dx9}*.h
- install -dm755 "${pkgdir}"/usr/include/CL
+ cd "${srcdir}"/OpenCL-CLHPP
- for h in $(ls -1 *.h *.hpp); do
- install -m 644 ${h} "${pkgdir}"/usr/include/CL/
- done
+ python gen_cl_hpp.py -i input_cl.hpp -o cl.hpp
+ install -m 644 cl.hpp "${pkgdir}"/usr/include/CL/
+ install -m 644 input_cl2.hpp "${pkgdir}"/usr/include/CL/cl2.hpp
- install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+ install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
More information about the arch-commits
mailing list