diff options
Diffstat (limited to 'community/cuda-toolkit')
-rw-r--r-- | community/cuda-toolkit/PKGBUILD | 43 | ||||
-rw-r--r-- | community/cuda-toolkit/cuda-toolkit.conf | 2 | ||||
-rw-r--r-- | community/cuda-toolkit/cuda-toolkit.install | 8 | ||||
-rwxr-xr-x | community/cuda-toolkit/cuda-toolkit.sh | 1 |
4 files changed, 54 insertions, 0 deletions
diff --git a/community/cuda-toolkit/PKGBUILD b/community/cuda-toolkit/PKGBUILD new file mode 100644 index 000000000..e6e1c2aaf --- /dev/null +++ b/community/cuda-toolkit/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +pkgname=cuda-toolkit +pkgver=4.0.17 +pkgrel=2 +_fedver=13 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('i686' 'x86_64') + +url="http://www.nvidia.com/object/cuda_home.html" +license=('custom') +depends=('gcc-libs') +if [ "$CARCH" = "i686" ]; then + _arch=32 + md5sums=('20d69b2d5bb7043ca7c2ad679c2825ed' + '21b65dc8f1be42f2b42217b5f62963f2' + 'c0781c63e726eaf03e10135b42b85729') +else + _arch=64 + md5sums=('152e1069f39fc8bbece875a1b9f576b6' + '21b65dc8f1be42f2b42217b5f62963f2' + 'c0781c63e726eaf03e10135b42b85729') +fi +install=cuda-toolkit.install +source=(http://developer.download.nvidia.com/compute/cuda/4_0/toolkit/cudatoolkit_${pkgver}_linux_${_arch}_fedora${_fedver}.run + cuda-toolkit.sh + cuda-toolkit.conf) + +build() { + cd "$srcdir" +} + +package() { + cd "$srcdir" + + mkdir -p $pkgdir/opt/cuda-toolkit + sh cudatoolkit_${pkgver}_linux_${_arch}_fedora${_fedver}.run --keep -- --prefix=$pkgdir/opt/cuda-toolkit + + sed -i "/unsupported GNU/d" $pkgdir/opt/cuda-toolkit/include/host_config.h + + install -Dm755 cuda-toolkit.sh $pkgdir/etc/profile.d/cuda-toolkit.sh + install -Dm644 cuda-toolkit.conf $pkgdir/etc/ld.so.conf.d/cuda-toolkit.conf + install -Dm644 $pkgdir/opt/cuda-toolkit/doc/EULA.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/community/cuda-toolkit/cuda-toolkit.conf b/community/cuda-toolkit/cuda-toolkit.conf new file mode 100644 index 000000000..0f55b39a7 --- /dev/null +++ b/community/cuda-toolkit/cuda-toolkit.conf @@ -0,0 +1,2 @@ +/opt/cuda-toolkit/lib64 +/opt/cuda-toolkit/lib diff --git a/community/cuda-toolkit/cuda-toolkit.install b/community/cuda-toolkit/cuda-toolkit.install new file mode 100644 index 000000000..4e1a1a6b7 --- /dev/null +++ b/community/cuda-toolkit/cuda-toolkit.install @@ -0,0 +1,8 @@ +post_install() { + echo "You need to relogin in order for the cuda-toolkit binaries to appear in your path." + post_upgrade +} + +post_upgrade() { + ldconfig -r . +} diff --git a/community/cuda-toolkit/cuda-toolkit.sh b/community/cuda-toolkit/cuda-toolkit.sh new file mode 100755 index 000000000..5609299b6 --- /dev/null +++ b/community/cuda-toolkit/cuda-toolkit.sh @@ -0,0 +1 @@ +PATH="/opt/cuda-toolkit/bin:$PATH" |