blob: 7e9682eeb818b7949765d5d0f03ffb9691c6b2a6 (
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
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Santiago Torres-Arias <santiago@archlinux.org>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
_pypiname=pyopencl
pkgname=python2-pyopencl
pkgver=2019.1
pkgrel=1
epoch=1
pkgdesc="A complete, object-oriented language binding of OpenCL to Python2"
arch=('i686' 'pentium4' 'x86_64')
url="https://mathema.tician.de/software/pyopencl"
license=('MIT' 'Apache' 'BSD')
depends=('opencl-icd-loader' 'opencl-headers' 'mesa' 'boost-libs')
makedepends=('ctags' 'boost' 'python-setuptools' 'python2-setuptools' 'python-mako' 'python2-mako'
'python-numpy' 'python2-numpy' 'python-cffi' 'python2-cffi' 'git' 'pybind11')
checkdepends=('python-six' 'python2-six' 'python-appdirs' 'python2-appdirs'
'python-pytest' 'python-pytools')
source=("git+https://github.com/inducer/pyopencl.git?signed#tag=v${pkgver}")
validpgpkeys=("900A958D9A0ACA58B1468F2471AA298BCA171145") # Andreas Ratchke
sha1sums=('SKIP')
build() {
cd "pyopencl"
git submodule init && git submodule update
python2 ./configure.py --python-exe=python2 --cl-pretend-version=1.2 # --boost-python-libname=boost_python3
make
}
check(){
# INFO: to avoid a PLATFORM_NOT_FOUND_KHR error here, you would have to install
# the driver of your specific video card in here
# checkdepends+=('amdgpu')
cd pyopencl
PYTHONPATH="$PWD/build/lib.linux-${CARCH}-2.7/" make tests
}
package() {
depends+=('python' 'python-numpy' 'python-mako' 'python-pytools' 'pyopencl-headers' 'python-setuptools' 'python-cffi')
cd pyopencl
python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
rm -fr "${pkgdir}"/usr/include
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|