diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2016-04-24 23:23:08 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-05 13:54:29 +0000 |
commit | 8f12c53037fb6e65e92e1a3975faa4c4d1b3641a (patch) | |
tree | eec7578550da30bc49bf8089190e038ebd47e098 /testing/py-opencl | |
parent | 17f24f5b217b81b62b7b708fe8826ef56f93cc10 (diff) | |
download | aports-8f12c53037fb6e65e92e1a3975faa4c4d1b3641a.tar.bz2 aports-8f12c53037fb6e65e92e1a3975faa4c4d1b3641a.tar.xz |
testing/py-opencl: new aport
closes https://bugs.alpinelinux.org/issues/5482
Diffstat (limited to 'testing/py-opencl')
-rw-r--r-- | testing/py-opencl/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/py-opencl/APKBUILD b/testing/py-opencl/APKBUILD new file mode 100644 index 0000000000..f70113798f --- /dev/null +++ b/testing/py-opencl/APKBUILD @@ -0,0 +1,34 @@ +# 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="http://pypi.python.org/packages/source/p/$_pkgreal/$_pkgreal-$pkgver.tar.gz" # URL not yet live +source="https://pypi.python.org/packages/cb/4e/fcb45db7d3005f5646f28a3de2a2f8e60a6e4b629f02bbb331320778f3a1/$_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" |