updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / cusp / PKGBUILD
blob76d587a303e56a3de4ea34f4c5b01fcb1847ee77
1 # Maintainer: Gregor Burger <burger.gregor at gmail>
2 pkgname=cusp
3 pkgver=0.1.2
4 pkgrel=3
5 pkgdesc="Cusp is a library for sparse linear algebra and graph computations on CUDA."
6 arch=('any')
7 url="http://code.google.com/p/thrust/"
8 license=('Apache 2.0')
9 depends=('cuda>=3.0' 'thrust>=1.3')
10 source=("http://cusp-library.googlecode.com/files/cusp-v0.1.2.zip")
11 md5sums=('bd8bae74311079ed1f361e4300f6be76')
13 build() {
14   mkdir -p $pkgdir/usr/include
15   cp -R $srcdir/cusp $pkgdir/usr/include/
16   #remove non-include files
17   rm $pkgdir/usr/include/cusp/CHANGELOG
18   rm $pkgdir/usr/include/cusp/README
19   rm $pkgdir/usr/include/cusp/LICENSE
20   # set environment variable
21   mkdir -p $pkgdir/etc/profile.d
22   echo "export CUSP_PATH=/usr/include" > $pkgdir/etc/profile.d/cusp.sh
23   chmod a+x $pkgdir/etc/profile.d/cusp.sh