summaryrefslogtreecommitdiff
path: root/community/python2-pycuda/PKGBUILD
blob: 37049dea1603a10da97e85d7ee07b01296079e18 (plain)
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
34
35
# $Id: PKGBUILD 62828 2012-01-27 14:09:50Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
pkgname=python2-pycuda
pkgver=2011.2.2
pkgrel=1
pkgdesc="Python wrapper for Nvidia CUDA"
arch=('i686' 'x86_64')
url="http://mathema.tician.de/software/pycuda"
license=('MIT/X Consortium')
source=(http://pypi.python.org/packages/source/p/pycuda/pycuda-${pkgver}.tar.gz)
depends=('cuda-toolkit' 'python2-numpy' 'python2-pytools' 'python2')
optdepends=('python2-pytest')
makedepends=('ctags' 'python2-distribute' 'mesa')
provides=('pycuda')
replaces=('pycuda')
conflicts=('pycuda')
sha1sums=('026ca33f66d35c82a087a5ef3f8e0f213575059b')

build() {
   cd "${srcdir}/pycuda-${pkgver}"
   python2 ./configure.py \
                  --cuda-root=/opt/cuda-toolkit \
                  --boost-compiler=gcc \
                  --cuda-enable-gl \
                  --cuda-inc-dir=/opt/cuda-toolkit/include \
                  --cudadrv-lib-dir=/opt/cuda-toolkit/lib \
                  --cudart-lib-dir=/opt/cuda-toolkit/lib

   make
}

package() {
   cd "${srcdir}/pycuda-${pkgver}"
   python2 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
}