updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / thrust / PKGBUILD
blob8340091c986437fcbbaa0c13f7592d7b5141571e
1 # Maintainer: Michael Schubert <mschu.dev at gmail>
2 pkgname=thrust
3 pkgver=1.4.0
4 pkgrel=1
5 pkgdesc="A CUDA library of parallel algorithms similar to the C++ STL"
6 arch=('any')
7 url="http://code.google.com/p/thrust/"
8 license=('Apache 2.0')
9 depends=('cuda3')
10 source=("http://thrust.googlecode.com/files/$pkgname-$pkgver.zip")
11 md5sums=('58922598c15c1bf45dfa700093c5d676')
13 build() {
14   mkdir -p $pkgdir/usr/include
15   cp -R $srcdir/thrust $pkgdir/usr/include/
17   # set environment variable
18   mkdir -p $pkgdir/etc/profile.d
19   echo "export THRUST_PATH=/usr/include" > $pkgdir/etc/profile.d/thrust.sh
20   chmod a+x $pkgdir/etc/profile.d/thrust.sh