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

Andreas Radke andyrtr at archlinux.org
Fri Feb 27 15:02:33 UTC 2015


    Date: Friday, February 27, 2015 @ 16:02:33
  Author: andyrtr
Revision: 232084

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

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

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

Copied: nvidia-lts/repos/testing-i686/PKGBUILD (from rev 232083, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2015-02-27 15:02:33 UTC (rev 232084)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=346.47
+_extramodules=extramodules-3.14-lts
+pkgrel=2
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+depends=('linux-lts>=3.14.34' "nvidia-utils=$pkgver" 'nvidia-libgl')
+makedepends=('linux-lts-headers>=3.14.34')
+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=('ae61b6c3c081383f991bcc64ee0844b1'
+         '115b5b2d136c4b44c658ef823b8a4bab')
+
+[[ "$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
+
+    if [[ "$CARCH" = "x86_64" ]]; then
+        cd uvm
+        make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
+    fi
+}
+
+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/uvm/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 232083, nvidia-lts/trunk/nvidia-lts.install)
===================================================================
--- testing-i686/nvidia-lts.install	                        (rev 0)
+++ testing-i686/nvidia-lts.install	2015-02-27 15:02:33 UTC (rev 232084)
@@ -0,0 +1,15 @@
+post_install() {
+    EXTRAMODULES='extramodules-3.14-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+    EXTRAMODULES='extramodules-3.14-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+    EXTRAMODULES='extramodules-3.14-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}

Copied: nvidia-lts/repos/testing-x86_64/PKGBUILD (from rev 232083, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2015-02-27 15:02:33 UTC (rev 232084)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=346.47
+_extramodules=extramodules-3.14-lts
+pkgrel=2
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+depends=('linux-lts>=3.14.34' "nvidia-utils=$pkgver" 'nvidia-libgl')
+makedepends=('linux-lts-headers>=3.14.34')
+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=('ae61b6c3c081383f991bcc64ee0844b1'
+         '115b5b2d136c4b44c658ef823b8a4bab')
+
+[[ "$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
+
+    if [[ "$CARCH" = "x86_64" ]]; then
+        cd uvm
+        make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
+    fi
+}
+
+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/uvm/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 232083, nvidia-lts/trunk/nvidia-lts.install)
===================================================================
--- testing-x86_64/nvidia-lts.install	                        (rev 0)
+++ testing-x86_64/nvidia-lts.install	2015-02-27 15:02:33 UTC (rev 232084)
@@ -0,0 +1,15 @@
+post_install() {
+    EXTRAMODULES='extramodules-3.14-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+    EXTRAMODULES='extramodules-3.14-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+    EXTRAMODULES='extramodules-3.14-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}



More information about the arch-commits mailing list