[arch-commits] Commit in nvidia-lts/repos (3 files)

Andreas Radke andyrtr at archlinux.org
Tue Dec 5 16:37:26 UTC 2017


    Date: Tuesday, December 5, 2017 @ 16:37:25
  Author: andyrtr
Revision: 311637

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-lts/repos/testing-x86_64/
  nvidia-lts/repos/testing-x86_64/PKGBUILD
    (from rev 311636, nvidia-lts/trunk/PKGBUILD)
  nvidia-lts/repos/testing-x86_64/nvidia-lts.install
    (from rev 311636, nvidia-lts/trunk/nvidia-lts.install)

--------------------+
 PKGBUILD           |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++
 nvidia-lts.install |   15 ++++++++++++++
 2 files changed, 68 insertions(+)

Copied: nvidia-lts/repos/testing-x86_64/PKGBUILD (from rev 311636, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-12-05 16:37:25 UTC (rev 311637)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=387.34
+_extramodules=extramodules-4.9-lts
+pkgrel=3
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/"
+makedepends=("nvidia-utils=$pkgver" 'linux-lts>=4.9.67' 'linux-lts-headers>=4.9.67')
+provides=('nvidia')
+license=('custom')
+install=nvidia-lts.install
+options=('!strip')
+source_x86_64=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+sha512sums_x86_64=('0a472f8e446dee01f9e526d4de4f6d587a97ad36dd36da66ab15243b6194a8198cbaf9ad3394558fdc963dd56ef1daaf519ed9cd69d59bc990bd56626897f5c8')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+    sh ${_pkg}.run --extract-only
+}
+
+build() {
+    export IGNORE_CC_MISMATCH=1
+
+    _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+    cd "${_pkg}/kernel"
+    make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+    depends=('linux-lts>=4.9.67' "nvidia-utils=$pkgver" 'libgl')
+
+    install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+      "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+    install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia-modeset.ko" \
+      "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-modeset.ko"
+    install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia-drm.ko" \
+      "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-drm.ko"
+
+    if [[ "$CARCH" = "x86_64" ]]; then
+      install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia-uvm.ko" \
+        "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-uvm.ko"
+    fi
+
+    gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+    install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+    echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+    echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+    install -D -m644 "${srcdir}/${_pkg}/LICENSE" "${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-lts/repos/testing-x86_64/nvidia-lts.install (from rev 311636, nvidia-lts/trunk/nvidia-lts.install)
===================================================================
--- testing-x86_64/nvidia-lts.install	                        (rev 0)
+++ testing-x86_64/nvidia-lts.install	2017-12-05 16:37:25 UTC (rev 311637)
@@ -0,0 +1,15 @@
+post_install() {
+    EXTRAMODULES='extramodules-4.9-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+    EXTRAMODULES='extramodules-4.9-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+    EXTRAMODULES='extramodules-4.9-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}



More information about the arch-commits mailing list