1 # Contributor: Jan Stępień <jstepien@users.sourceforge.net>
6 pkgdesc="The CUDA Data Parallel Primitives Library"
8 url="http://gpgpu.org/developer/cudpp"
10 depends=('cuda-toolkit')
11 makedepends=(subversion)
14 source=(nvccflags.patch)
15 sha1sums=(5b7572b3baececa07299acda2582b1bc7bfd5ad7)
17 _svntrunk="http://cudpp.googlecode.com/svn/trunk"
21 msg "Connecting to SVN server..."
22 if [ -d $pkgname/.svn ]; then
25 svn co $_svntrunk -r $pkgver $pkgname
27 msg "SVN checkout done or server timeout"
30 patch -Np1 -i $srcdir/nvccflags.patch || return 1
31 msg "Done patching, starting make"
33 cd $srcdir/$pkgname/common
34 make verbose=1 || return 1
35 cd $srcdir/$pkgname/cudpp
36 make verbose=1 || return 1
38 mkdir -p $pkgdir/usr/{lib,include} || return 1
39 install -m 644 $srcdir/$pkgname/lib/libcudpp.a $pkgdir/usr/lib
40 install -m 644 $srcdir/$pkgname/cudpp/include/cudpp.h $pkgdir/usr/include