diff options
Diffstat (limited to 'community/python-pyopencl')
-rw-r--r-- | community/python-pyopencl/PKGBUILD | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/community/python-pyopencl/PKGBUILD b/community/python-pyopencl/PKGBUILD index cb5cd4e25..61f8d8e78 100644 --- a/community/python-pyopencl/PKGBUILD +++ b/community/python-pyopencl/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 74334 2012-07-24 17:36:16Z stephane $ +# $Id: PKGBUILD 78243 2012-10-17 10:26:44Z allan $ # Maintainer: Stéphane Gaudreault <stephane@archlinux.org> pkgbase=python-pyopencl -pkgname=('python2-pyopencl' 'python-pyopencl') +pkgname=('python2-pyopencl' 'python-pyopencl' 'pyopencl-headers') pkgver=2012.1 -pkgrel=3 +pkgrel=5 pkgdesc="A complete, object-oriented language binding of OpenCL to Python" arch=('i686' 'x86_64') url="http://mathema.tician.de/software/pyopencl" @@ -21,28 +21,41 @@ build() { cp -a pyopencl-$pkgver{,-python2} cd "${srcdir}/pyopencl-${pkgver}" - python ./configure.py --cl-enable-gl --no-use-shipped-boost - python setup.py build + python3 ./configure.py --cl-enable-gl --no-use-shipped-boost + python3 setup.py build cd "$srcdir/pyopencl-$pkgver-python2" python2 ./configure.py --cl-enable-gl --no-use-shipped-boost python2 setup.py build - } package_python-pyopencl() { - depends=('libcl' 'opencl-headers' 'mesa' 'boost' 'python' 'python-numpy' 'python-mako' 'python-pytools') + depends=('libcl' 'opencl-headers' 'mesa' 'boost' 'python' 'python-numpy' 'python-mako' 'python-pytools' 'pyopencl-headers') cd "${srcdir}/pyopencl-${pkgver}" - python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + + rm -fr "${pkgdir}"/usr/include install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } + package_python2-pyopencl() { - depends=('libcl' 'opencl-headers' 'mesa' 'boost' 'python2' 'python2-numpy' 'python2-mako' 'python2-pytools') + depends=('libcl' 'opencl-headers' 'mesa' 'boost' 'python2' 'python2-numpy' 'python2-mako' 'python2-pytools' 'pyopencl-headers') cd "${srcdir}/pyopencl-${pkgver}-python2" python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + rm -fr "${pkgdir}"/usr/include + install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } + +package_pyopencl-headers() { + cd "${srcdir}/pyopencl-${pkgver}" + install -dm755 "${pkgdir}"/usr/include/pyopencl + + for file in pyopencl-bessel-j.cl pyopencl-cephes.cl pyopencl-airy.cl pyopencl-ranluxcl.cl pyopencl-complex.h; do + install -m644 src/cl/${file} "${pkgdir}"/usr/include/pyopencl + done +} |