1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/py3-opencl/APKBUILD
2019-11-05 15:34:00 +00:00

34 lines
1.2 KiB
Text

# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-opencl
_pkgreal=pyopencl
pkgver=2019.1
pkgrel=3
pkgdesc="Python3 wrapper for OpenCL"
url="https://pypi.python.org/pypi/pyopencl"
arch="all"
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="6a808799a4c065371ce41cc71fc5386ba5462e2a6b908f06f6062afe9c7b05d262fa13314398ba2effd83ed196871c7b2d0695d496c43b8217b33f2c43bba096 pyopencl-2019.1.tar.gz"