[arch-commits] Commit in nvidia-lts/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Andreas Radke
andyrtr at gemini.archlinux.org
Thu Sep 8 13:51:04 UTC 2022
Date: Thursday, September 8, 2022 @ 13:51:03
Author: andyrtr
Revision: 455603
archrelease: copy trunk to testing-x86_64
Added:
nvidia-lts/repos/testing-x86_64/
nvidia-lts/repos/testing-x86_64/PKGBUILD
(from rev 455602, nvidia-lts/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: nvidia-lts/repos/testing-x86_64/PKGBUILD (from rev 455602, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-09-08 13:51:03 UTC (rev 455603)
@@ -0,0 +1,32 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Contributor: Eric Bélanger <eric at archlinux.org>
+pkgname=nvidia-lts
+pkgver=515.65.01
+pkgrel=11
+epoch=1
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="https://www.nvidia.com/"
+makedepends=('linux-lts-headers' "nvidia-dkms=$pkgver")
+provides=('NVIDIA-MODULE')
+license=('custom')
+options=('!strip')
+
+build() {
+ _kernver=$(</usr/src/linux-lts/version)
+
+ fakeroot dkms build --dkmstree "${srcdir}" -m nvidia/${pkgver} -k ${_kernver}
+}
+
+package() {
+ depends=('linux-lts' "nvidia-utils=${pkgver}" 'libglvnd')
+
+ _kernver="$(</usr/src/linux-lts/version)"
+
+ install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" -m644 nvidia/${pkgver}/${_kernver}/${CARCH}/module/*
+
+ # compress each module individually
+ find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
+
+ install -Dm644 /usr/share/licenses/nvidia-dkms/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list