[arch-commits] Commit in nvidia-lts/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Jul 9 16:22:36 UTC 2020


    Date: Thursday, July 9, 2020 @ 16:22:36
  Author: svenstaro
Revision: 391496

archrelease: copy trunk to staging-x86_64

Added:
  nvidia-lts/repos/staging-x86_64/
  nvidia-lts/repos/staging-x86_64/PKGBUILD
    (from rev 391495, nvidia-lts/trunk/PKGBUILD)

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

Copied: nvidia-lts/repos/staging-x86_64/PKGBUILD (from rev 391495, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-07-09 16:22:36 UTC (rev 391496)
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=450.57
+pkgrel=1
+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)
+
+    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 {} +
+
+    echo "blacklist nouveau" |
+        install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
+
+    install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 \
+        /usr/share/licenses/nvidia-dkms/LICENSE
+}
+
+
+



More information about the arch-commits mailing list