summaryrefslogtreecommitdiff
path: root/community/python-pyopencl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/python-pyopencl/PKGBUILD')
-rw-r--r--community/python-pyopencl/PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/community/python-pyopencl/PKGBUILD b/community/python-pyopencl/PKGBUILD
index 4a1126de9..14865460f 100644
--- a/community/python-pyopencl/PKGBUILD
+++ b/community/python-pyopencl/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 96123 2013-08-20 06:32:57Z lcarlier $
+# $Id: PKGBUILD 100072 2013-11-01 09:31:30Z jelle $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
pkgbase=python-pyopencl
pkgname=('python2-pyopencl' 'python-pyopencl' 'pyopencl-headers')
-pkgver=2013.1
-pkgrel=2
+pkgver=2013.2
+pkgrel=1
pkgdesc="A complete, object-oriented language binding of OpenCL to Python"
arch=('i686' 'x86_64')
url="http://mathema.tician.de/software/pyopencl"
@@ -13,7 +13,7 @@ epoch=1
makedepends=('boost-libs' 'ctags' 'python2-setuptools' 'python-setuptools' 'libcl' 'opencl-headers' 'mesa' 'boost' 'python2-mako' 'python-mako' 'python-numpy' 'python2-numpy')
source=("http://pypi.python.org/packages/source/p/pyopencl/pyopencl-${pkgver}.tar.gz"
'LICENSE.txt')
-sha1sums=('76331c9042d0286c7c722407dec0fb975a6b340c'
+sha1sums=('805b1c5c44647182dcc7aedb00caf8ca47bc6e84'
'2e6966b3d9b15603ce2c3ff79eeadd63c5d066b7')
build() {
@@ -30,6 +30,14 @@ build() {
python2 setup.py build
}
+check(){
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python3 setup.py test
+
+ cd "$srcdir/pyopencl-$pkgver-python2"
+ python2 setup.py test
+}
+
package_python-pyopencl() {
depends=('libcl' 'opencl-headers' 'mesa' 'boost-libs' 'python' 'python-numpy' 'python-mako' 'python-pytools' 'pyopencl-headers')