aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-opencl/APKBUILD
blob: b0a7999ae470630c5c30d2b8099e9d7bf403b054 (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
# 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"