diff options
Diffstat (limited to 'community/py-opencl/APKBUILD')
-rw-r--r-- | community/py-opencl/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/py-opencl/APKBUILD b/community/py-opencl/APKBUILD new file mode 100644 index 0000000000..b0a7999ae4 --- /dev/null +++ b/community/py-opencl/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Stuart Cardall <developer@it-offshore.co.uk> +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> +pkgname=py-opencl +_pkgreal=${pkgname/-/} +pkgver=2016.1 +pkgrel=0 +pkgdesc="Python wrapper for OpenCL" +url="https://pypi.python.org/pypi/pyopencl" +arch="all" +license="MIT" +depends="python" +depends_dev="$pkgname" +makedepends="python-dev py-setuptools py-mako py-numpy ctags libffi-dev mesa-dev opencl-headers opencl-icd-loader-dev" +install="" +subpackages="$pkgname-dev" +source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz" + +builddir="$srcdir"/$_pkgreal-$pkgver +build() { + cd "$builddir" + python configure.py --cl-enable-gl --python-exe=python || return 1 + make || return 1 + python setup.py test +} + +package() { + cd "$builddir" + python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build || return 1 +} + +md5sums="0c8a33b6a6b427bcd9c5966da461d9c6 pyopencl-2016.1.tar.gz" +sha256sums="54b6e8ad02dc437807739bd53e43851efe979bd51ec87996e44b94ab67238297 pyopencl-2016.1.tar.gz" +sha512sums="3be8da315f9b4a4e03071152bb5968c5c7b102cbae6c70f358438cfd7951d12970a76dd8e922187ff73e47f7d0ce7a070e6f303dbe364c016796fa65d7e1de71 pyopencl-2016.1.tar.gz" |