blob: 6b47a1b4027af9cd490e16983d31dddcf5c946be (
plain)
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
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py-opencl
_pkgreal=${pkgname/-/}
pkgver=2016.2.1
pkgrel=0
pkgdesc="Python wrapper for OpenCL"
url="https://pypi.python.org/pypi/pyopencl"
arch="all"
license="MIT"
depends="python2"
depends_dev="$pkgname"
makedepends="python2-dev py-setuptools py-mako py-numpy ctags libffi-dev mesa-dev opencl-headers opencl-icd-loader-dev"
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"
python2 configure.py --cl-enable-gl --python-exe=python2 || return 1
make || return 1
python2 setup.py test
}
package() {
cd "$builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build || return 1
}
md5sums="ccc20e6c228e03c36081553adc21bd27 pyopencl-2016.2.1.tar.gz"
sha256sums="3fcb59ab9c85e08d96a24388a736cc3d0bbd9608efff96ecb25d3124fde6f4b7 pyopencl-2016.2.1.tar.gz"
sha512sums="a135311acd999e618e39a52139f93e7e9833c7068282b84be099ff74ac6c96abb2bcd0b54eee01197643525aac18a28bf7ccc62877dc403265fa88d4bea9f3ab pyopencl-2016.2.1.tar.gz"
|