summaryrefslogtreecommitdiff
path: root/community-testing/python2-pyopencl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/python2-pyopencl/PKGBUILD')
-rw-r--r--community-testing/python2-pyopencl/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/community-testing/python2-pyopencl/PKGBUILD b/community-testing/python2-pyopencl/PKGBUILD
new file mode 100644
index 000000000..02a07630c
--- /dev/null
+++ b/community-testing/python2-pyopencl/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 73771 2012-07-15 13:20:19Z ibiru $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+
+pkgname=python2-pyopencl
+pkgver=2012.1
+pkgrel=2
+pkgdesc="A complete, object-oriented language binding of OpenCL to Python"
+arch=('i686' 'x86_64')
+url="http://mathema.tician.de/software/pyopencl"
+license=('custom')
+depends=('python2' 'python2-numpy' 'python2-mako' 'python2-pytools' 'libcl' 'opencl-headers' 'mesa' 'boost')
+makedepends=('ctags' 'python2-distribute')
+source=("http://pypi.python.org/packages/source/p/pyopencl/pyopencl-${pkgver}.tar.gz"
+ 'LICENSE.txt')
+sha1sums=('ef2460d5e9b883d8afe0ec47863a243b6f8ac7ff'
+ '2e6966b3d9b15603ce2c3ff79eeadd63c5d066b7')
+
+build() {
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python2 ./configure.py --cl-enable-gl --no-use-shipped-boost
+
+ python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+ install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}