[arch-commits] Commit in (5 files)

Eric Bélanger eric at archlinux.org
Sat Jan 29 21:42:48 EST 2011


    Date: Saturday, January 29, 2011 @ 21:42:48
  Author: eric
Revision: 108136

Adding new package

Added:
  nvidia-lts/
  nvidia-lts/repos/
  nvidia-lts/trunk/
  nvidia-lts/trunk/PKGBUILD
  nvidia-lts/trunk/nvidia-lts.install

--------------------+
 PKGBUILD           |   40 ++++++++++++++++++++++++++++++++++++++++
 nvidia-lts.install |   14 ++++++++++++++
 2 files changed, 54 insertions(+)

Added: nvidia-lts/trunk/PKGBUILD
===================================================================
--- nvidia-lts/trunk/PKGBUILD	                        (rev 0)
+++ nvidia-lts/trunk/PKGBUILD	2011-01-30 02:42:48 UTC (rev 108136)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Eric Belanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=260.19.36
+_kernver='2.6.32-lts'
+pkgrel=1
+pkgdesc="NVIDIA drivers for kernel26-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+depends=('kernel26-lts>=2.6.32' 'kernel26-lts<2.6.33' "nvidia-utils=$pkgver")
+makedepends=('kernel26-lts-headers>=2.6.32' 'kernel26-lts-headers<2.6.33')
+provides=('nvidia')
+license=('custom')
+install=nvidia-lts.install
+if [ "$CARCH" = "i686" ]; then
+	_arch='x86'
+	_pkg="NVIDIA-Linux-${_arch}-${pkgver}"
+        source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
+        md5sums=('2826484d87827351774449382e45c4a9')
+elif [ "$CARCH" = "x86_64" ]; then
+	_arch='x86_64'
+	_pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
+        source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
+        md5sums=('6ebc5db9066e920b0b0e48377ce5eeb5')
+fi
+
+build() {
+	cd "${srcdir}"
+	sh ${_pkg}.run --extract-only
+	cd ${_pkg}/kernel
+	make SYSSRC=/lib/modules/${_kernver}/build module
+}
+
+package() {
+	install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+		"${pkgdir}/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko"
+        install -d -m755 "${pkgdir}/etc/modprobe.d"
+        echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist-lts.conf"
+}


Property changes on: nvidia-lts/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id

Added: nvidia-lts/trunk/nvidia-lts.install
===================================================================
--- nvidia-lts/trunk/nvidia-lts.install	                        (rev 0)
+++ nvidia-lts/trunk/nvidia-lts.install	2011-01-30 02:42:48 UTC (rev 108136)
@@ -0,0 +1,14 @@
+post_install() {
+	KERNEL_VERSION='2.6.32-lts'
+	depmod $KERNEL_VERSION
+}
+
+post_upgrade() {
+	post_install
+	rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
+}
+
+post_remove() {
+	KERNEL_VERSION='2.6.32-lts'
+	depmod $KERNEL_VERSION
+}



More information about the arch-commits mailing list