updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / pycuda-git / PKGBUILD
blobab6c2bb508b27ec4d132310ee52b366f2c60e409
1 pkgname=pycuda-git
2 pkgver=20091203
3 pkgrel=1
4 pkgdesc="Python wrapper for Nvidia CUDA"
5 arch=('i686' 'x86_64')
6 url="http://mathema.tician.de/software/pycuda"
7 license=('MIT/X Consortium')
8 depends=('boost' 'cuda-toolkit' 'python-numpy' 'pytools' 'nvidia-utils')
9 makedepends=('ctags' 'python-distribute')
10 provides=('pycuda')
11 conflicts=('pycuda')
13 _gitroot="http://git.tiker.net/trees/pycuda.git"
14 _gitname="pycuda"
16 build() { 
17   cd "$srcdir"
19   msg "Connecting to the GIT server...."
20   if [ -d "$_gitname" ]; then
21     cd $_gitname && git pull origin
22     msg2 "Local files updated"
23     cd ..
24   else
25     git clone $_gitroot
26   fi
27   msg2 "GIT checkout done or server timeout"
29   rm -rf $_gitname-build
30   cp -r $_gitname $_gitname-build
31   cd $_gitname-build
33    ./configure.py --boost-inc-dir=/usr/include/boost \
34                   --boost-lib-dir=/usr/lib \
35                   --boost-python-libname=boost_python-mt \
36                   --boost-thread-libname=boost_thread-mt \
37                   --cuda-root=/usr || return 1
39    make || return 1
41    python setup.py install --root=$startdir/pkg || return 1