aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-opencl/APKBUILD
blob: 4caca455d15c5dba92bafd84f024bde87cb36a4a (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-opencl
_pkgreal=pyopencl
pkgver=2019.1.2
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="b2850622253f480cafacadbb9d13afea801af9d4dd52679f132fc0e5f1d4c2f4d3bdf83c9ed64c14c19ead75e6d36afa8b57ff52bbea135fc02291b1fe7b8636  pyopencl-2019.1.2.tar.gz"