[arch-commits] Commit in cuda/repos (5 files)
Sven-Hendrik Haase
svenstaro at nymeria.archlinux.org
Sun Mar 9 00:18:48 UTC 2014
Date: Sunday, March 9, 2014 @ 01:18:48
Author: svenstaro
Revision: 106834
archrelease: copy trunk to community-testing-x86_64
Added:
cuda/repos/community-testing-x86_64/
cuda/repos/community-testing-x86_64/PKGBUILD
(from rev 106833, cuda/trunk/PKGBUILD)
cuda/repos/community-testing-x86_64/cuda.conf
(from rev 106833, cuda/trunk/cuda.conf)
cuda/repos/community-testing-x86_64/cuda.install
(from rev 106833, cuda/trunk/cuda.install)
cuda/repos/community-testing-x86_64/cuda.sh
(from rev 106833, cuda/trunk/cuda.sh)
--------------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
cuda.conf | 2 ++
cuda.install | 11 +++++++++++
cuda.sh | 1 +
4 files changed, 67 insertions(+)
Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 106833, cuda/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2014-03-09 00:18:48 UTC (rev 106834)
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 69719 2012-04-23 02:56:20Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgname=cuda
+pkgver=6.0.26_rc
+pkgrel=1
+pkgdesc="NVIDIA's GPU programming toolkit"
+arch=('x86_64')
+url="http://www.nvidia.com/object/cuda_home.html"
+license=('custom')
+depends=('gcc-libs' 'opencl-nvidia')
+replaces=('cuda-toolkit' 'cuda-sdk')
+provides=('cuda-toolkit' 'cuda-sdk')
+optdepends=('gdb: for cuda-gdb')
+options=(!strip staticlibs)
+md5sums=('ea1e1235ebc17dc8e2ca2bec3febde52'
+ '7e5990e03eea90075f5a500e91a0c3d3'
+ 'ffe1e6fb7f97b23da28fd94a5fd7356d')
+install=cuda.install
+source=(http://developer.download.nvidia.com/compute/cuda/6_0/rc/installers/cuda_${pkgver}_linux64.run
+ cuda.sh
+ cuda.conf)
+
+package() {
+ sh cuda_${pkgver}_linux64.run -extract=$srcdir
+ ./cuda-linux64-rel-6.0.26*.run -prefix=$pkgdir/opt/cuda -noprompt
+ ./cuda-samples-linux-6.0.26*.run -cudaprefix=$pkgdir/opt/cuda -prefix=$pkgdir/opt/cuda/samples -noprompt
+
+ # Now, let the hacks begin!
+
+ # allow newer gcc to work
+ # NOTE: We don't need these currently, but we might again! :D
+ #sed -i "/unsupported GNU/d" $pkgdir/opt/cuda/include/host_config.h
+ #sed -i "1 i #define __STRICT_ANSI__" $pkgdir/opt/cuda/include/cuda_runtime.h
+ #echo "#undef _GLIBCXX_ATOMIC_BUILTINS" >> $pkgdir/opt/cuda/include/cuda_runtime.h
+ #echo "#define _GLIBCXX_GTHREAD_USE_WEAK 0" >> $pkgdir/opt/cuda/include/cuda_runtime.h
+
+ # fix nvidia path fuckup
+ #sed -i "s|/build/pkg/cuda||g" $pkgdir/opt/cuda/bin/nvvp $pkgdir/opt/cuda/bin/nsight
+
+ install -Dm755 $srcdir/cuda.sh $pkgdir/etc/profile.d/cuda.sh
+ install -Dm644 $srcdir/cuda.conf $pkgdir/etc/ld.so.conf.d/cuda.conf
+
+ # correct cuda path in samples
+ cd $pkgdir/opt/cuda/samples
+ find . -name Makefile | xargs sed -i "s|$pkgdir/opt/cuda|/opt/cuda|g"
+
+ # make cuda-gdk work
+ mkdir -p $pkgdir/usr/lib
+ cd $pkgdir/usr/lib
+ ln -s /usr/lib/libncurses.so.5 libtinfo.so.5
+
+ install -Dm644 $pkgdir/opt/cuda/doc/pdf/EULA.pdf $pkgdir/usr/share/licenses/$pkgname/EULA.pdf
+}
Copied: cuda/repos/community-testing-x86_64/cuda.conf (from rev 106833, cuda/trunk/cuda.conf)
===================================================================
--- community-testing-x86_64/cuda.conf (rev 0)
+++ community-testing-x86_64/cuda.conf 2014-03-09 00:18:48 UTC (rev 106834)
@@ -0,0 +1,2 @@
+/opt/cuda/lib64
+/opt/cuda/lib
Copied: cuda/repos/community-testing-x86_64/cuda.install (from rev 106833, cuda/trunk/cuda.install)
===================================================================
--- community-testing-x86_64/cuda.install (rev 0)
+++ community-testing-x86_64/cuda.install 2014-03-09 00:18:48 UTC (rev 106834)
@@ -0,0 +1,11 @@
+post_install() {
+ echo "The cuda binaries are in /opt/cuda/bin"
+ echo "The cuda samples are in /opt/cuda/samples"
+ echo "The cuda docs are in /opt/cuda/doc"
+ echo "You need to relogin in order for the cuda binaries to appear in your PATH"
+ post_upgrade
+}
+
+post_upgrade() {
+ ldconfig -r .
+}
Copied: cuda/repos/community-testing-x86_64/cuda.sh (from rev 106833, cuda/trunk/cuda.sh)
===================================================================
--- community-testing-x86_64/cuda.sh (rev 0)
+++ community-testing-x86_64/cuda.sh 2014-03-09 00:18:48 UTC (rev 106834)
@@ -0,0 +1 @@
+export PATH=$PATH:/opt/cuda/bin
More information about the arch-commits
mailing list