[arch-commits] Commit in nvidia-340xx-lts/repos (6 files)

Andreas Radke andyrtr at archlinux.org
Sat Aug 20 20:43:10 UTC 2016


    Date: Saturday, August 20, 2016 @ 20:43:09
  Author: andyrtr
Revision: 274099

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-i686/
  nvidia-340xx-lts/repos/testing-i686/PKGBUILD
    (from rev 274098, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-i686/nvidia-340xx-lts.install
    (from rev 274098, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
    (from rev 274098, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install
    (from rev 274098, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)

-----------------------------------------+
 testing-i686/PKGBUILD                   |   50 ++++++++++++++++++++++++++++++
 testing-i686/nvidia-340xx-lts.install   |   15 +++++++++
 testing-x86_64/PKGBUILD                 |   50 ++++++++++++++++++++++++++++++
 testing-x86_64/nvidia-340xx-lts.install |   15 +++++++++
 4 files changed, 130 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-i686/PKGBUILD (from rev 274098, nvidia-340xx-lts/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-08-20 20:43:09 UTC (rev 274099)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-340xx-lts
+pkgver=340.96
+_extramodules=extramodules-4.4-lts
+pkgrel=9
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+makedepends=('linux-lts>=4.4.19' 'linux-lts-headers>=4.4.19' "nvidia-340xx-utils=$pkgver" "nvidia-340xx-libgl=${pkgver}")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+install=${pkgname}.install
+options=(!strip)
+source=("ftp://download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run"
+        "ftp://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+md5sums=('cb64b165b638671bcdc75bcf297b8d90'
+         '7bdbcee13bade63227933d9217571882')
+
+[[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+    sh ${_pkg}.run --extract-only
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.4.13' "nvidia-340xx-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/uvm/nvidia-uvm.ko" \
+    "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  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-340xx-lts/repos/testing-i686/nvidia-340xx-lts.install (from rev 274098, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)
===================================================================
--- testing-i686/nvidia-340xx-lts.install	                        (rev 0)
+++ testing-i686/nvidia-340xx-lts.install	2016-08-20 20:43:09 UTC (rev 274099)
@@ -0,0 +1,15 @@
+post_install() {
+    EXTRAMODULES='extramodules-4.4-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+    EXTRAMODULES='extramodules-4.4-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+    EXTRAMODULES='extramodules-4.4-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 274098, nvidia-340xx-lts/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-08-20 20:43:09 UTC (rev 274099)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-340xx-lts
+pkgver=340.96
+_extramodules=extramodules-4.4-lts
+pkgrel=9
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+makedepends=('linux-lts>=4.4.19' 'linux-lts-headers>=4.4.19' "nvidia-340xx-utils=$pkgver" "nvidia-340xx-libgl=${pkgver}")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+install=${pkgname}.install
+options=(!strip)
+source=("ftp://download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run"
+        "ftp://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+md5sums=('cb64b165b638671bcdc75bcf297b8d90'
+         '7bdbcee13bade63227933d9217571882')
+
+[[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+    sh ${_pkg}.run --extract-only
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.4.13' "nvidia-340xx-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/uvm/nvidia-uvm.ko" \
+    "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  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-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install (from rev 274098, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)
===================================================================
--- testing-x86_64/nvidia-340xx-lts.install	                        (rev 0)
+++ testing-x86_64/nvidia-340xx-lts.install	2016-08-20 20:43:09 UTC (rev 274099)
@@ -0,0 +1,15 @@
+post_install() {
+    EXTRAMODULES='extramodules-4.4-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+    EXTRAMODULES='extramodules-4.4-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+    EXTRAMODULES='extramodules-4.4-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}



More information about the arch-commits mailing list