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/PKGBUILD61
1 files changed, 0 insertions, 61 deletions
diff --git a/community/python-pyopencl/PKGBUILD b/community/python-pyopencl/PKGBUILD
deleted file mode 100644
index 13e7212ca..000000000
--- a/community/python-pyopencl/PKGBUILD
+++ /dev/null
@@ -1,61 +0,0 @@
-# $Id: PKGBUILD 94047 2013-07-13 12:36:45Z svenstaro $
-# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
-
-pkgbase=python-pyopencl
-pkgname=('python2-pyopencl' 'python-pyopencl' 'pyopencl-headers')
-pkgver=2013.1
-pkgrel=1
-pkgdesc="A complete, object-oriented language binding of OpenCL to Python"
-arch=('i686' 'x86_64')
-url="http://mathema.tician.de/software/pyopencl"
-license=('custom')
-makedepends=('boost-libs' 'ctags' 'python2-distribute' 'python-distribute' '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'
- '2e6966b3d9b15603ce2c3ff79eeadd63c5d066b7')
-
-build() {
- cd "$srcdir"
-
- cp -a pyopencl-$pkgver{,-python2}
-
- cd "${srcdir}/pyopencl-${pkgver}"
- python3 ./configure.py --cl-enable-gl --no-use-shipped-boost --boost-python-libname=boost_python3
- python3 setup.py build
-
- cd "$srcdir/pyopencl-$pkgver-python2"
- python2 ./configure.py --cl-enable-gl --no-use-shipped-boost --boost-python-libname=boost_python
- python2 setup.py build
-}
-
-package_python-pyopencl() {
- depends=('libcl' 'opencl-headers' 'mesa' 'boost-libs' 'python' 'python-numpy' 'python-mako' 'python-pytools' 'pyopencl-headers')
-
- cd "${srcdir}/pyopencl-${pkgver}"
- python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
-
- rm -fr "${pkgdir}"/usr/include
-
- install -D -m644 $srcdir/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
-
-package_python2-pyopencl() {
- depends=('libcl' 'opencl-headers' 'mesa' 'boost-libs' '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 $srcdir/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-airy.cl pyopencl-bessel-j.cl pyopencl-bessel-y.cl pyopencl-complex.h pyopencl-eval-tbl.cl pyopencl-ranluxcl.cl; do
- install -m644 pyopencl/cl/${file} "${pkgdir}"/usr/include/pyopencl
- done
-}