aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-opencl/APKBUILD
blob: d783844d1fb5cb24fbf41eadde51f76303d682a6 (plain) (blame)
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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-opencl
_pkgreal=pyopencl
pkgver=2021.2.6
pkgrel=0
pkgdesc="Python3 wrapper for OpenCL"
url="https://pypi.python.org/pypi/pyopencl"
# mips blocked due to py3-numpy
arch="all !mips !mips64"
license="MIT"
depends="py3-appdirs py3-decorator py3-numpy py3-six py3-mako py3-pytools"
makedepends="python3-dev py3-setuptools ctags libffi-dev mesa-dev opencl-headers
	opencl-icd-loader-dev py3-cparser py3-cffi py3-pybind11-dev py3-numpy-dev"
checkdepends="py3-pytest py3-py"
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
options="!check" # tests require python-theano which isn't packed yet

replaces="py-opencl" # Backwards compatibility
provides="py-opencl=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
b7bea4903a34104c538545c611554c1651ae7a94ee56d8c7129a88a9e547911fac085617b4238fac33534c9b981bcfdb9fabd716456a86fa428cfd42d9cb128c  pyopencl-2021.2.6.tar.gz
"