blob: 0a21ce2b35568fc91f4d742c9f342c7a187d02f2 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $Id: PKGBUILD 60629 2011-12-15 19:18:50Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Sylvain HENRY <hsyl20@yahoo.fr>
pkgname=opencl-headers
pkgver=1.1.20110526
_clbasever=1.1
pkgrel=1
epoch=1
pkgdesc='OpenCL (Open Computing Language) header files'
arch=('any')
url='http://www.khronos.org/registry/cl/'
license=('custom')
optdepends=('libcl: OpenCL library')
source=("ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.src.tar.xz"
'LICENSE.txt')
_headers=("http://www.khronos.org/registry/cl/api/${_clbasever}/cl_ext.h"
"http://www.khronos.org/registry/cl/api/${_clbasever}/cl_gl_ext.h"
"http://www.khronos.org/registry/cl/api/${_clbasever}/cl_gl.h"
"http://www.khronos.org/registry/cl/api/${_clbasever}/cl.h"
"http://www.khronos.org/registry/cl/api/${_clbasever}/cl.hpp"
"http://www.khronos.org/registry/cl/api/${_clbasever}/cl_platform.h"
"http://www.khronos.org/registry/cl/api/${_clbasever}/opencl.h")
sha1sums=('b9deedbae4f87fa0987ca7b2347f68d608284a02'
'98abb35b2eca82d0fc19db6d28fcc7bd20be0655')
# source PKGBUILD && mksource
mksource() {
cd "${srcdir}"
_dirname=${pkgname}-${pkgver}
mkdir ${_dirname}
pushd ${_dirname}
for _h in ${_headers[@]}; do
wget ${_h}
done
popd
tar -cJv --exclude=CVS -f ${_dirname}.src.tar.xz ${_dirname}
rm -rf ${_dirname}
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -dm755 "${pkgdir}"/usr/include/CL
for h in $(ls -1 *.h *.hpp); do
install -m 644 ${h} "${pkgdir}"/usr/include/CL/
done
install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|