Date: Sunday, June 8, 2014 @ 22:31:11
  Author: tpowa
Revision: 214392

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

Added:
  nvidia/repos/testing-i686/
  nvidia/repos/testing-i686/PKGBUILD
    (from rev 214391, nvidia/trunk/PKGBUILD)
  nvidia/repos/testing-i686/nvidia-3.14.patch
    (from rev 214391, nvidia/trunk/nvidia-3.14.patch)
  nvidia/repos/testing-i686/nvidia.install
    (from rev 214391, nvidia/trunk/nvidia.install)
  nvidia/repos/testing-x86_64/
  nvidia/repos/testing-x86_64/PKGBUILD
    (from rev 214391, nvidia/trunk/PKGBUILD)
  nvidia/repos/testing-x86_64/nvidia-3.14.patch
    (from rev 214391, nvidia/trunk/nvidia-3.14.patch)
  nvidia/repos/testing-x86_64/nvidia.install
    (from rev 214391, nvidia/trunk/nvidia.install)

----------------------------------+
 testing-i686/PKGBUILD            |   49 +++++++++++++++++++++++++++++++++++++
 testing-i686/nvidia-3.14.patch   |   12 +++++++++
 testing-i686/nvidia.install      |   18 +++++++++++++
 testing-x86_64/PKGBUILD          |   49 +++++++++++++++++++++++++++++++++++++
 testing-x86_64/nvidia-3.14.patch |   12 +++++++++
 testing-x86_64/nvidia.install    |   18 +++++++++++++
 6 files changed, 158 insertions(+)

Copied: nvidia/repos/testing-i686/PKGBUILD (from rev 214391, 
nvidia/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD                               (rev 0)
+++ testing-i686/PKGBUILD       2014-06-08 20:31:11 UTC (rev 214392)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer : Thomas Baechler <tho...@archlinux.org>
+
+pkgname=nvidia
+pkgver=337.25
+_extramodules=extramodules-3.15-ARCH
+pkgrel=2
+pkgdesc="NVIDIA drivers for linux"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/";
+depends=('linux>=3.15' 'linux<3.16' "nvidia-libgl" "nvidia-utils=${pkgver}")
+makedepends=('linux-headers>=3.15' 'linux-headers<3.16')
+conflicts=('nvidia-96xx' 'nvidia-173xx')
+license=('custom')
+install=nvidia.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=('2a217632ced8952e21000a51065f85b8'
+         '66e19d6d621c9e70fbd5374dd8b44341')
+
+[[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+    sh "${_pkg}.run" --extract-only
+    cd "${_pkg}"
+    # patches here
+}
+
+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() {
+    install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+        "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
+    install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+        "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-uvm.ko"
+    gzip "${pkgdir}/usr/lib/modules/${_extramodules}/"*.ko
+    install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+    echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia.conf"
+    sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" 
"${startdir}/nvidia.install"
+}

Copied: nvidia/repos/testing-i686/nvidia-3.14.patch (from rev 214391, 
nvidia/trunk/nvidia-3.14.patch)
===================================================================
--- testing-i686/nvidia-3.14.patch                              (rev 0)
+++ testing-i686/nvidia-3.14.patch      2014-06-08 20:31:11 UTC (rev 214392)
@@ -0,0 +1,12 @@
+--- a/kernel/nv-linux.h         2014-01-09 04:49:25.000000000 +0200
++++ b/kernel/nv-linux.h         2014-02-05 16:46:55.552408568 +0200
+@@ -273,8 +273,7 @@
+ #endif
+ 
+ #if !defined(NV_VMWARE) && defined(CONFIG_ACPI)
+-#include <acpi/acpi.h>
+-#include <acpi/acpi_drivers.h>
++#include <linux/acpi.h>
+ #if defined(NV_ACPI_DEVICE_OPS_HAS_MATCH) || defined(ACPI_VIDEO_HID)
+ #define NV_LINUX_ACPI_EVENTS_SUPPORTED 1
+ #endif

Copied: nvidia/repos/testing-i686/nvidia.install (from rev 214391, 
nvidia/trunk/nvidia.install)
===================================================================
--- testing-i686/nvidia.install                         (rev 0)
+++ testing-i686/nvidia.install 2014-06-08 20:31:11 UTC (rev 214392)
@@ -0,0 +1,18 @@
+post_install() {
+    EXTRAMODULES='extramodules-3.14-ARCH'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+    EXTRAMODULES='extramodules-3.14-ARCH'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    if  [ "$(vercmp $2 310.19-2)" -lt 0 ]; then
+        echo 'If your card is from the 7xxx series or earlier, install 
nvidia-304xx'
+    fi
+}
+
+post_remove() {
+    EXTRAMODULES='extramodules-3.14-ARCH'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}

Copied: nvidia/repos/testing-x86_64/PKGBUILD (from rev 214391, 
nvidia/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2014-06-08 20:31:11 UTC (rev 214392)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer : Thomas Baechler <tho...@archlinux.org>
+
+pkgname=nvidia
+pkgver=337.25
+_extramodules=extramodules-3.15-ARCH
+pkgrel=2
+pkgdesc="NVIDIA drivers for linux"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/";
+depends=('linux>=3.15' 'linux<3.16' "nvidia-libgl" "nvidia-utils=${pkgver}")
+makedepends=('linux-headers>=3.15' 'linux-headers<3.16')
+conflicts=('nvidia-96xx' 'nvidia-173xx')
+license=('custom')
+install=nvidia.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=('2a217632ced8952e21000a51065f85b8'
+         '66e19d6d621c9e70fbd5374dd8b44341')
+
+[[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+    sh "${_pkg}.run" --extract-only
+    cd "${_pkg}"
+    # patches here
+}
+
+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() {
+    install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+        "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
+    install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+        "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-uvm.ko"
+    gzip "${pkgdir}/usr/lib/modules/${_extramodules}/"*.ko
+    install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+    echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia.conf"
+    sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" 
"${startdir}/nvidia.install"
+}

Copied: nvidia/repos/testing-x86_64/nvidia-3.14.patch (from rev 214391, 
nvidia/trunk/nvidia-3.14.patch)
===================================================================
--- testing-x86_64/nvidia-3.14.patch                            (rev 0)
+++ testing-x86_64/nvidia-3.14.patch    2014-06-08 20:31:11 UTC (rev 214392)
@@ -0,0 +1,12 @@
+--- a/kernel/nv-linux.h         2014-01-09 04:49:25.000000000 +0200
++++ b/kernel/nv-linux.h         2014-02-05 16:46:55.552408568 +0200
+@@ -273,8 +273,7 @@
+ #endif
+ 
+ #if !defined(NV_VMWARE) && defined(CONFIG_ACPI)
+-#include <acpi/acpi.h>
+-#include <acpi/acpi_drivers.h>
++#include <linux/acpi.h>
+ #if defined(NV_ACPI_DEVICE_OPS_HAS_MATCH) || defined(ACPI_VIDEO_HID)
+ #define NV_LINUX_ACPI_EVENTS_SUPPORTED 1
+ #endif

Copied: nvidia/repos/testing-x86_64/nvidia.install (from rev 214391, 
nvidia/trunk/nvidia.install)
===================================================================
--- testing-x86_64/nvidia.install                               (rev 0)
+++ testing-x86_64/nvidia.install       2014-06-08 20:31:11 UTC (rev 214392)
@@ -0,0 +1,18 @@
+post_install() {
+    EXTRAMODULES='extramodules-3.14-ARCH'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+    EXTRAMODULES='extramodules-3.14-ARCH'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+    if  [ "$(vercmp $2 310.19-2)" -lt 0 ]; then
+        echo 'If your card is from the 7xxx series or earlier, install 
nvidia-304xx'
+    fi
+}
+
+post_remove() {
+    EXTRAMODULES='extramodules-3.14-ARCH'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}

Reply via email to