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

Andreas Radke andyrtr at archlinux.org
Wed Sep 30 17:08:10 UTC 2015


    Date: Wednesday, September 30, 2015 @ 19:08:09
  Author: andyrtr
Revision: 247927

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

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

-----------------------------------+
 testing-i686/PKGBUILD             |   51 ++++++++++++++++++++++++++++++++++++
 testing-i686/nvidia-lts.install   |   15 ++++++++++
 testing-x86_64/PKGBUILD           |   51 ++++++++++++++++++++++++++++++++++++
 testing-x86_64/nvidia-lts.install |   15 ++++++++++
 4 files changed, 132 insertions(+)

Copied: nvidia-lts/repos/testing-i686/PKGBUILD (from rev 247926, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2015-09-30 17:08:09 UTC (rev 247927)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=355.11
+_extramodules=extramodules-4.1-lts
+pkgrel=4
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+depends=('linux-lts>=4.1.9' "nvidia-utils=$pkgver" 'libgl')
+makedepends=('linux-lts-headers>=4.1.9')
+provides=('nvidia')
+license=('custom')
+install=nvidia-lts.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=('16d143ccafe99328a2ca8e5a396fd4bc'
+         '30133d89690f4683c4e289ec6c0247dc')
+
+[[ "$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() {
+    export IGNORE_CC_MISMATCH=1
+
+    _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+    cd "${_pkg}/kernel"
+    make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+    install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+      "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.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-i686/nvidia-lts.install (from rev 247926, nvidia-lts/trunk/nvidia-lts.install)
===================================================================
--- testing-i686/nvidia-lts.install	                        (rev 0)
+++ testing-i686/nvidia-lts.install	2015-09-30 17:08:09 UTC (rev 247927)
@@ -0,0 +1,15 @@
+post_install() {
+    EXTRAMODULES='extramodules-4.1-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+    EXTRAMODULES='extramodules-4.1-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+    EXTRAMODULES='extramodules-4.1-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}

Copied: nvidia-lts/repos/testing-x86_64/PKGBUILD (from rev 247926, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2015-09-30 17:08:09 UTC (rev 247927)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=355.11
+_extramodules=extramodules-4.1-lts
+pkgrel=4
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+depends=('linux-lts>=4.1.9' "nvidia-utils=$pkgver" 'libgl')
+makedepends=('linux-lts-headers>=4.1.9')
+provides=('nvidia')
+license=('custom')
+install=nvidia-lts.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=('16d143ccafe99328a2ca8e5a396fd4bc'
+         '30133d89690f4683c4e289ec6c0247dc')
+
+[[ "$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() {
+    export IGNORE_CC_MISMATCH=1
+
+    _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+    cd "${_pkg}/kernel"
+    make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+    install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+      "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.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 247926, nvidia-lts/trunk/nvidia-lts.install)
===================================================================
--- testing-x86_64/nvidia-lts.install	                        (rev 0)
+++ testing-x86_64/nvidia-lts.install	2015-09-30 17:08:09 UTC (rev 247927)
@@ -0,0 +1,15 @@
+post_install() {
+    EXTRAMODULES='extramodules-4.1-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+    EXTRAMODULES='extramodules-4.1-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+    EXTRAMODULES='extramodules-4.1-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}



More information about the arch-commits mailing list