[arch-commits] Commit in cuda/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Oct 29 08:12:00 UTC 2019


    Date: Tuesday, October 29, 2019 @ 08:11:58
  Author: svenstaro
Revision: 520876

upgpkg: cuda 10.1.243-2

Fix default path in sample Makefiles (FS#64170)

Modified:
  cuda/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-29 05:26:16 UTC (rev 520875)
+++ PKGBUILD	2019-10-29 08:11:58 UTC (rev 520876)
@@ -1,9 +1,9 @@
 # Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-# Co-Maintainer: Konstantin Gizdov <arch at kge.pw>
+# Maintainer: Konstantin Gizdov <arch at kge.pw>
 pkgname=cuda
 pkgver=10.1.243
 _driverver=418.87.00
-pkgrel=1
+pkgrel=2
 pkgdesc="NVIDIA's GPU programming toolkit"
 arch=('x86_64')
 url="https://developer.nvidia.com/cuda-zone"
@@ -77,6 +77,11 @@
 
   # Allow GCC 9 to work
   sed -i "/.*unsupported GNU version.*/d" "${pkgdir}"/opt/cuda/targets/x86_64-linux/include/crt/host_config.h
+
+  # Fix Makefile paths to CUDA
+  for f in $(find "$pkgdir"/opt/cuda -name Makefile); do
+    sed -i "s|/usr/local/cuda|/opt/cuda|g" "$f"
+  done
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list