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

Felix Yan felixonmars at archlinux.org
Sat Oct 22 14:52:08 UTC 2016


    Date: Saturday, October 22, 2016 @ 14:52:07
  Author: felixonmars
Revision: 279139

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

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

-----------------------------------+
 staging-i686/PKGBUILD             |   56 ++++++++++++++++++++++++++++++++++++
 staging-i686/nvidia-lts.install   |   15 +++++++++
 staging-x86_64/PKGBUILD           |   56 ++++++++++++++++++++++++++++++++++++
 staging-x86_64/nvidia-lts.install |   15 +++++++++
 4 files changed, 142 insertions(+)

Copied: nvidia-lts/repos/staging-i686/PKGBUILD (from rev 279138, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2016-10-22 14:52:07 UTC (rev 279139)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=375.10
+_extramodules=extramodules-4.4-lts
+pkgrel=1
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+makedepends=("nvidia-utils=$pkgver" "nvidia-libgl=$pkgver" 'linux-lts>=4.4.21' 'linux-lts-headers>=4.4.21')
+provides=('nvidia')
+license=('custom')
+install=nvidia-lts.install
+options=('!strip')
+source_i686=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run")
+source_x86_64=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+sha512sums_i686=('b68af4b00a98f9f22ae2a41fdde7d823d22a7b3587b80860b206b96b6121adec203b81c258ee5ba3e20dfd0ba60337f95de268d96d417cc0b39a2822b7021017')
+sha512sums_x86_64=('6da1fdeac302e50c88ab1c5086c0bbf7466a34c647df3cc838d067f1ec87e851e5f10477279a9efef03ea820677ccd77ba893a83e531a00a7e0016cc83c45966')
+
+[[ "$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() {
+    depends=('linux-lts>=4.4.13' "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/staging-i686/nvidia-lts.install (from rev 279138, nvidia-lts/trunk/nvidia-lts.install)
===================================================================
--- staging-i686/nvidia-lts.install	                        (rev 0)
+++ staging-i686/nvidia-lts.install	2016-10-22 14:52:07 UTC (rev 279139)
@@ -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-lts/repos/staging-x86_64/PKGBUILD (from rev 279138, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2016-10-22 14:52:07 UTC (rev 279139)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=375.10
+_extramodules=extramodules-4.4-lts
+pkgrel=1
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+makedepends=("nvidia-utils=$pkgver" "nvidia-libgl=$pkgver" 'linux-lts>=4.4.21' 'linux-lts-headers>=4.4.21')
+provides=('nvidia')
+license=('custom')
+install=nvidia-lts.install
+options=('!strip')
+source_i686=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run")
+source_x86_64=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+sha512sums_i686=('b68af4b00a98f9f22ae2a41fdde7d823d22a7b3587b80860b206b96b6121adec203b81c258ee5ba3e20dfd0ba60337f95de268d96d417cc0b39a2822b7021017')
+sha512sums_x86_64=('6da1fdeac302e50c88ab1c5086c0bbf7466a34c647df3cc838d067f1ec87e851e5f10477279a9efef03ea820677ccd77ba893a83e531a00a7e0016cc83c45966')
+
+[[ "$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() {
+    depends=('linux-lts>=4.4.13' "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/staging-x86_64/nvidia-lts.install (from rev 279138, nvidia-lts/trunk/nvidia-lts.install)
===================================================================
--- staging-x86_64/nvidia-lts.install	                        (rev 0)
+++ staging-x86_64/nvidia-lts.install	2016-10-22 14:52:07 UTC (rev 279139)
@@ -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