[arch-commits] Commit in nouveau-drm/trunk (PKGBUILD nouveau-drm.install)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Jun 12 20:51:41 UTC 2009


    Date: Friday, June 12, 2009 @ 16:51:41
  Author: andyrtr
Revision: 42310

fix kernelver in install scriptlet, update to todays snapshot

Modified:
  nouveau-drm/trunk/PKGBUILD
  nouveau-drm/trunk/nouveau-drm.install

---------------------+
 PKGBUILD            |   20 +++++++++++++-------
 nouveau-drm.install |    2 +-
 2 files changed, 14 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-06-12 17:07:36 UTC (rev 42309)
+++ PKGBUILD	2009-06-12 20:51:41 UTC (rev 42310)
@@ -3,8 +3,9 @@
 # Contributor: buddabrod <buddabrod at gmail.com>
 
 pkgname=nouveau-drm
-pkgver=20090611
-_gitdate=20090611
+pkgver=20090612
+_gitdate=20090612
+_kernver='2.6.30-ARCH'
 pkgrel=1
 pkgdesc="nvidia opensource X driver"
 arch=('i686' 'x86_64')
@@ -16,14 +17,16 @@
 md5sums=()
 source=(ftp://ftp.archlinux.org/other/$pkgname/mesa-drm-${_gitdate}.tar.bz2
 	dont_check_for_pthread.patch)
+md5sums=('b673761e0e64546638fc533b91da801a'
+         '237f3cdb1bfc5c62bfa7b038b7a20b2a')
 
 build() {
   # get git code
-  cd ${srcdir}
-  #git clone -v git://anongit.freedesktop.org/git/mesa/drm/
-  #cd drm
-  #git archive --prefix=mesa-drm-${_gitdate}/ --format=tar HEAD | bzip2 > ../../mesa-drm-${_gitdate}.tar.bz2
-  #return 1
+#  cd ${srcdir}
+#  git clone -v git://anongit.freedesktop.org/git/mesa/drm/
+#  cd drm
+#  git archive --prefix=mesa-drm-${_gitdate}/ --format=tar HEAD | bzip2 > ../../mesa-drm-${_gitdate}.tar.bz2
+#  return 1
 
   # build the drm kernel module
   # make sure the system kernel doesn't have "drm" set to "yes", 
@@ -36,5 +39,8 @@
   install -D -m 0644 drm.ko ${pkgdir}/lib/modules/`uname -r`/updates/drm.ko || return 1
   install -D -m 0644 nouveau.ko ${pkgdir}/lib/modules/`uname -r`/kernel/drivers/video/nouveau.ko || return 1
   install -D -m 0644 ../shared-core/nouveau_drm.h ${pkgdir}/usr/include/nouveau_drm.h || return 1
+
+  # install script
+  sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
 }
 

Modified: nouveau-drm.install
===================================================================
--- nouveau-drm.install	2009-06-12 17:07:36 UTC (rev 42309)
+++ nouveau-drm.install	2009-06-12 20:51:41 UTC (rev 42310)
@@ -5,7 +5,7 @@
 
 post_upgrade() {
   post_install $1
- # rmmod nouveau || echo 'In order to use the new nouneau module, exit Xserver and unload it manually.'
+  rmmod nouveau || echo 'In order to use the new nouneau module, exit Xserver and unload it manually.'
 }
 
 post_remove() {




More information about the arch-commits mailing list