[arch-commits] CVS update of extra/x11/nvidia-suspend2 (PKGBUILD nvidia.install)

daniel at archlinux.org daniel at archlinux.org
Tue Oct 16 18:55:15 UTC 2007


    Date: Tuesday, October 16, 2007 @ 14:55:15
  Author: daniel
    Path: /home/cvs-extra/extra/x11/nvidia-suspend2

 Removed: PKGBUILD (1.17) nvidia.install (1.7)


----------------+
 PKGBUILD       |   38 --------------------------------------
 nvidia.install |   22 ----------------------
 2 files changed, 60 deletions(-)


Index: extra/x11/nvidia-suspend2/PKGBUILD
diff -u extra/x11/nvidia-suspend2/PKGBUILD:1.17 extra/x11/nvidia-suspend2/PKGBUILD:removed
--- extra/x11/nvidia-suspend2/PKGBUILD:1.17	Tue Aug 21 12:58:10 2007
+++ extra/x11/nvidia-suspend2/PKGBUILD	Tue Oct 16 14:55:15 2007
@@ -1,38 +0,0 @@
-# $Id: PKGBUILD,v 1.17 2007/08/21 16:58:10 daniel Exp $
-# Maintainer : Tobias Powalowski <tpowa at archlinux.org>
-
-pkgname=nvidia-suspend2
-pkgver=100.14.11
-_kernver='2.6.22-suspend2'
-pkgrel=2
-pkgdesc="NVIDIA drivers for kernel26suspend2."
-arch=(i686 x86_64)
-[ "$CARCH" = "i686"   ] && ARCH=x86
-[ "$CARCH" = "x86_64" ] && ARCH=x86_64
-url="http://www.nvidia.com/"
-depends=('kernel26suspend2' 'nvidia-utils')
-conflicts=('nvidia-96xx-suspend2' 'nvidia-71xx-suspend2' 'nvidia-legacy-suspend2')
-install=nvidia.install
-source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run)
-md5sums=('af434d27f9b089ac1cb216f55f9b0f33')
-[ "$CARCH" = "x86_64" ] && md5sums=('e87b354355cce583646004dbfea1f09a')
-
-build()
-{
-  # Extract
-  cd $startdir/src/
-  sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
-  cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
-  
-  # Any extra patches are applied in here...
-
-  cd usr/src/nv/
-  ln -s Makefile.kbuild Makefile
-  make SYSSRC=/lib/modules/${_kernver}/build module 
-  
-  # install kernel module
-  mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
-  install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
-
-  sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
-}
Index: extra/x11/nvidia-suspend2/nvidia.install
diff -u extra/x11/nvidia-suspend2/nvidia.install:1.7 extra/x11/nvidia-suspend2/nvidia.install:removed
--- extra/x11/nvidia-suspend2/nvidia.install:1.7	Tue Aug 21 12:58:10 2007
+++ extra/x11/nvidia-suspend2/nvidia.install	Tue Oct 16 14:55:15 2007
@@ -1,22 +0,0 @@
-# arg 1:  the new package version
-post_install() {
-  KERNEL_VERSION='2.6.22-suspend2'
-  depmod -v $KERNEL_VERSION  > /dev/null 2>&1		 
-}
-
-# arg 1:  the new package version
-# arg 2:  the old package version
-post_upgrade() {
-  post_install $1
-  rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
-}
-
-# arg 1:  the old package version
-post_remove() {
-  KERNEL_VERSION='2.6.22-suspend2'
-  depmod -v $KERNEL_VERSION	 > /dev/null 2>&1	 
-}
-
-op=$1
-shift
-$op $*




More information about the arch-commits mailing list