[arch-commits] Commit in nvidia/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Sat Feb 28 15:13:06 UTC 2015


    Date: Saturday, February 28, 2015 @ 16:13:06
  Author: svenstaro
Revision: 232105

upgpkg: nvidia 346.47-4

Make nvidia a virtual package and put the actual stuff into nvidia-module

Modified:
  nvidia/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-02-28 13:08:40 UTC (rev 232104)
+++ PKGBUILD	2015-02-28 15:13:06 UTC (rev 232105)
@@ -1,7 +1,8 @@
 # $Id$
 # Maintainer : Thomas Baechler <thomas at archlinux.org>
 
-pkgname=nvidia
+pkgbase=nvidia
+pkgname=('nvidia' 'nvidia-module')
 pkgver=346.47
 _extramodules=extramodules-3.19-ARCH
 pkgrel=4
@@ -8,17 +9,14 @@
 pkgdesc="NVIDIA drivers for linux"
 arch=('i686' 'x86_64')
 url="http://www.nvidia.com/"
-depends=('linux>=3.19' 'linux<3.20' "nvidia-libgl" "nvidia-utils=${pkgver}")
-makedepends=('linux-headers>=3.19' 'linux-headers<3.20')
+makedepends=('linux>=3.19' 'linux<3.20' 'linux-headers>=3.19' 'linux-headers<3.20')
 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"
-        nv-drm-343.36.patch)
+        "ftp://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
 md5sums=('ae61b6c3c081383f991bcc64ee0844b1'
-         '115b5b2d136c4b44c658ef823b8a4bab'
-         'ff8a5f979e4428f8c847423fb007042c')
+         '115b5b2d136c4b44c658ef823b8a4bab')
 
 [[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
 [[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
@@ -27,7 +25,6 @@
     sh "${_pkg}.run" --extract-only
     cd "${_pkg}"
     # patches here
-    patch -p1 -i ../nv-drm-343.36.patch
 }
 
 build() {
@@ -41,7 +38,14 @@
     fi
 }
 
-package() {
+package_nvidia() {
+    depends=('nvidia-libgl' 'nvidia-module')
+}
+
+package_nvidia-module() {
+    depends=('linux>=3.19' 'linux<3.20' "nvidia-utils=${pkgver}")
+    provides=('nvidia')
+
     install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
         "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
 



More information about the arch-commits mailing list