Date: Monday, December 12, 2022 @ 06:14:00
  Author: svenstaro
Revision: 1358807

archrelease: copy trunk to community-staging-x86_64

Added:
  cudnn/repos/community-staging-x86_64/
  cudnn/repos/community-staging-x86_64/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf
    (from rev 1358806, cudnn/trunk/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf)
  cudnn/repos/community-staging-x86_64/PKGBUILD
    (from rev 1358806, cudnn/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: 
cudnn/repos/community-staging-x86_64/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf 
(from rev 1358806, cudnn/trunk/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf)
===================================================================
(Binary files differ)

Copied: cudnn/repos/community-staging-x86_64/PKGBUILD (from rev 1358806, 
cudnn/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-12-12 06:14:00 UTC (rev 1358807)
@@ -0,0 +1,49 @@
+# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com>
+# Contributor: Adria Arrufat <adria.arrufat AT protonmail+aur DOT com>
+# Contributor: Sami B. <spiderma...@free.fr>
+# Contributor: Yunhui Fu <yhf...@gmail.com>
+
+pkgname=cudnn
+pkgver=8.7.0.84
+_pkgver=8.7.0
+_cudaver=11.8
+_majorver=8
+_archive="cudnn-linux-x86_64-${pkgver}_cuda11-archive.tar.xz"
+pkgrel=1
+pkgdesc="NVIDIA CUDA Deep Neural Network library"
+arch=('x86_64')
+url="https://developer.nvidia.com/cuDNN";
+license=('custom')
+depends=('cuda>='"${_cudaver}")
+options=(!strip staticlibs)
+# To figure out these URLs, check out the Dockerfiles at
+# https://gitlab.com/nvidia/container-images/cuda/-/tree/master/dist for the 
appropriate cuda version
+# or make an NVIDIA Developer account.
+# Alternatively, check 
https://github.com/pytorch/builder/blob/master/common/install_cuda.sh
+# or 
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/
+source=("https://developer.download.nvidia.com/compute/redist/cudnn/v${_pkgver}/local_installers/${_cudaver}/${_archive}";
+        "NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf")
+sha512sums=('2d19f093d97245023f63c6f03596da9f16f89a8b784c792eb28b0a2e42b1c31ba51efbbea414873d0039ca8f49777c2eefbb156bf46dd437c6ed5a2730ff6d69'
+            
'38bbb7eb287914e4d7ba79da20a47222382687832d4ba0290715199a129c08715a23681800cf8d381f40e24202470a7b20505a31c8cea51a78762a740860251b')
+noextract=("${_archive}")
+
+package() {
+  mkdir -p "${pkgdir}"/usr/share/licenses/
+  tar xf "${_archive}" --strip-components 1 -C "${pkgdir}/usr"
+
+  find "${pkgdir}/usr/lib" -type f \( -iname "*.a" -or -iname "*.a.*" \) 
-print0 | while read -rd $'\0' _so_file; do
+    # make sure static libraries have proper permissions
+    chmod 644 "${_so_file}"
+  done
+
+  install -Dm644 \
+      "${srcdir}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf \
+      
"${pkgdir}"/usr/share/licenses/"${pkgname}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf
+
+  mv "${pkgdir}"/usr/LICENSE 
"${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+
+  # fix permissions
+  chown -R root:root "${pkgdir}"/*
+}
+
+# vim: ts=2 sw=2 ft=sh syn=sh et

Reply via email to