[arch-commits] Commit in cudnn/trunk (PKGBUILD)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Fri Jan 7 12:51:47 UTC 2022
Date: Friday, January 7, 2022 @ 12:51:46
Author: kgizdov
Revision: 1095844
upgpkg: cudnn 8.3.1.22-1
Modified:
cudnn/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-07 12:39:28 UTC (rev 1095843)
+++ PKGBUILD 2022-01-07 12:51:46 UTC (rev 1095844)
@@ -4,10 +4,11 @@
# Contributor: Yunhui Fu <yhfdev at gmail.com>
pkgname=cudnn
-pkgver=8.3.0.98
-_pkgver=8.3.0
+pkgver=8.3.1.22
+_pkgver=8.3.1
_cudaver=11.5
_majorver=8
+_archive="cudnn-linux-x86_64-${pkgver}_cuda${_cudaver}-archive.tar.xz"
pkgrel=1
pkgdesc="NVIDIA CUDA Deep Neural Network library"
arch=('x86_64')
@@ -20,17 +21,16 @@
# 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}/cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz"
+source=("https://developer.download.nvidia.com/compute/redist/cudnn/v${_pkgver}/local_installers/${_cudaver}/${_archive}"
"NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf")
-sha512sums=('46af7d47b40a2c0ee8d5b893514755f803b5a0c7426b8d88b258e71ae6312cb553cba7dd68f63e2060849c70713330d52f93f56121f663213c16030d39b2fc1d'
+sha512sums=('815ef678b7510e014181f3bf782e627771e8d00d218b34f2af11436b8a49331400269f98448854353c12721468365b71a8483eb7631777f0d628982e81942a8b'
'38bbb7eb287914e4d7ba79da20a47222382687832d4ba0290715199a129c08715a23681800cf8d381f40e24202470a7b20505a31c8cea51a78762a740860251b')
-noextract=("cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz")
+noextract=("${_archive}")
package() {
mkdir -p "${pkgdir}"/usr/share/licenses/
- tar xf cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz --strip-components 1 -C "${pkgdir}/usr"
+ tar xf "${_archive}" --strip-components 1 -C "${pkgdir}/usr"
- mv "${pkgdir}"/usr/lib64 "${pkgdir}"/usr/lib
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}"
@@ -38,9 +38,9 @@
install -Dm644 \
"${srcdir}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf \
- "${pkgdir}"/usr/share/licenses/${pkgname}/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf
+ "${pkgdir}"/usr/share/licenses/"${pkgname}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf
- mv "${pkgdir}"/usr/NVIDIA_SLA_cuDNN_Support.txt "${pkgdir}"/usr/share/licenses/${pkgname}/NVIDIA_SLA_cuDNN_Support.txt
+ mv "${pkgdir}"/usr/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}
# vim: ts=2 sw=2 ft=sh syn=sh et
More information about the arch-commits
mailing list