updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / cudpp-svn / PKGBUILD
blob67aabc936cf99c94eeb815bed0fc8af145a5877f
1 # Contributor: Jan Stępień <jstepien@users.sourceforge.net>
3 pkgname=cudpp-svn
4 pkgver=107
5 pkgrel=2
6 pkgdesc="The CUDA Data Parallel Primitives Library"
7 arch=('i686' 'x86_64')
8 url="http://gpgpu.org/developer/cudpp"
9 license=('BSD')
10 depends=('cuda-toolkit')
11 makedepends=(subversion)
12 provides=(cudpp)
13 conflicts=(cudpp)
14 source=(nvccflags.patch)
15 sha1sums=(5b7572b3baececa07299acda2582b1bc7bfd5ad7)
17 _svntrunk="http://cudpp.googlecode.com/svn/trunk"
19 build() {
20   cd $srcdir
21   msg "Connecting to SVN server..."
22   if [ -d $pkgname/.svn ]; then
23     svn up -r $pkgver
24   else
25     svn co $_svntrunk -r $pkgver $pkgname
26   fi
27   msg "SVN checkout done or server timeout"
29   cd $srcdir/$pkgname
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